+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 "If" function not cooperating

  1. #1
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Winterville, NC
    MS-Off Ver
    Excel 2013
    Posts
    141

    Angry Excel 2007 "If" function not cooperating

    I have a worksheet A with text in cells B2:B20 and then similar text in cells C2:C20 (in the C column, the text is shorter, more concise).

    In a different worksheet (worksheet B) I have the same text as in cells B2:B20 of worksheet A...but I have rows and rows of it. I want to match the text so it finds the corresponding text in worksheet A and copies column C into worksheet A.

    I used an If function to match a particular text string to B2:B20 and then return the coordsponding value in C2:C20. What I'm really trying to do is clean up data that I download from a report so the statements are shorter/more consice for graph presentation.

    I just used an IF function:
    =IF(C2=Validations!B:B,Validations!C:C,"*")

    The IF function works for the first 20 rows....but on the worksheet I'm using it for, it goes down to row 96. I think the problem is, that it's looking at the exact same row. But it's funny because in the "function" box, I see it looks like it's finding the statement is true at some point (one of the rows) but then it returns a false value!

    Will IF not work here? Thx - Andrea

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel 2007 "If" function not cooperating

    Try:

    =IFERROR(VLOOKUP(C2,Validations!B:C,2,0),"*")

    copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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