+ Reply to Thread
Results 1 to 7 of 7

Add Cells, but ignore those when text appears

Hybrid View

  1. #1
    Registered User
    Join Date
    03-13-2010
    Location
    Cape Town, SA
    MS-Off Ver
    MS Office 2013
    Posts
    59

    Add Cells, but ignore those when text appears

    Some data from tables have the word "INVALID" in them because this option is not available.
    This word comes up in my formula and gives me #VALUE.
    How do I get it to ignore the text "INVALID" and can I be warned if I enter a number in a cell that is linked to this "INVALID" text.

    I have attached a Test file to try to explain what I want to achieve.
    Hope it all makes sense to you.

    Thanks All
    Attached Files Attached Files
    Last edited by Quagga; 10-20-2010 at 09:11 AM. Reason: Solved

  2. #2
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Add Cells, but ignore those when text appears

    Please have a look
    regards
    Peter
    Is this what you areafter?
    Attached Files Attached Files

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Add Cells, but ignore those when text appears

    Quagga, consider switching to SUMPRODUCT

    C17:
    =SUMPRODUCT(E4:G4,I4:K4)
    copied down
    obviously you should consider handling NAs also - to that end I would suggest using IFERROR in the I:K matrix itself (see XL Help for more info)

  4. #4
    Registered User
    Join Date
    03-13-2010
    Location
    Cape Town, SA
    MS-Off Ver
    MS Office 2013
    Posts
    59

    Re: Add Cells, but ignore those when text appears

    Thank you once again DonkeyOte. Your SUMPRODUCT is just what I needed. for the first part.

    Is it possible to get an "Error Alert" when I want to type in a value in Cells E4:G13, but the relevant value in cells I4:K13 comes up as "INVALID"?
    This Error Alert will tell the person entering the info into the yellow cells that they need to select another mode of transport( Road, Sea , Air)

    Thanks again

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Add Cells, but ignore those when text appears

    Quote Originally Posted by Quagga View Post
    Is it possible to get an "Error Alert" when I want to type in a value in Cells E4:G13, but the relevant value in cells I4:K13 comes up as "INVALID"?
    To kill as many birds with one stone as possible perhaps you could do the following...

    Highlight E4:G13 having used E4 as starting point.. with the range selected apply Data Validation (via Data Tab on Ribbon):

    Allow: Custom
    Source: =ISNUMBER(E4*I4)

  6. #6
    Registered User
    Join Date
    03-13-2010
    Location
    Cape Town, SA
    MS-Off Ver
    MS Office 2013
    Posts
    59

    Re: Add Cells, but ignore those when text appears

    Thank You DonkeyOte, you are a Master.

  7. #7
    Registered User
    Join Date
    03-13-2010
    Location
    Cape Town, SA
    MS-Off Ver
    MS Office 2013
    Posts
    59

    Re: Add Cells, but ignore those when text appears

    Thanks for the solution Peter, I have used the "SUMPRODUCT"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1