+ Reply to Thread
Results 1 to 4 of 4

Help with If formula

  1. #1
    Registered User
    Join Date
    07-05-2011
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    17

    Help with If formula

    I have this formual that shows values from one sheet to another "=INDEX(Sheet1!3:3,MATCH(G$1,Sheet1!$1:$1,0))". THe formula returns a #N/A becasue some of the values are not available yet. This is okay becasue they will be later. I would like to use a an IF formula in conjustion wih the above formula to show either a blank cell"" of just return a zero if some of the values are missing. I am not sure what arguement I need to put first in the IF formula to accomplish this. Thanks for the help.

    TB

  2. #2
    Registered User
    Join Date
    04-20-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2013, 2010, 2007, 2003
    Posts
    99

    Re: Help with If formula

    try =IF(ISERROR(INDEX(Sheet1!3:3,MATCH(G$1,Sheet1!$1:$1,0)),"What you want to show up if its an error",INDEX(Sheet1!3:3,MATCH(G$1,Sheet1!$1:$1,0))

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Help with If formula

    Alternate:
    =IF(ISNA(MATCH(G$1,Sheet1!$1:$1,0)),"",HLOOKUP(G$1,Sheet1!$1:3,ROWS($1:3),0))
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    07-05-2011
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Help with If formula

    Thanks for the help, ISERROR worked.

+ 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