+ Reply to Thread
Results 1 to 6 of 6

IF or VLookUP

  1. #1
    Registered User
    Join Date
    10-04-2013
    Location
    North Carolina, United States
    MS-Off Ver
    Excel 2007
    Posts
    56

    IF or VLookUP

    I've not used VLookup before. I'm a novice at best with Excel. I've tried simplifying my IF formulas by the end value. I thought that would be easier than trying to have 50-60 IF statements! I've used the following formula but get a return of #VALUE. I have end values of "D," "B," and "E." I've not gotten to E in the formula yet because it didn't work after I added the "D" scenarios.

    Here is the nested IF i'm trying to work with...
    =IF(OR(AH102="B",AH103="B",AH104="B",AH105="B",AH106="B",AH107="B",AH108="B",AH109="B"),"B",""),IF(OR(AH112="D",AH113="D",AH114="D",AH115="D",AH116="D",AH117="D",AH118="D",AH119="D",AH120="D",AH121="D",AH122="D",AH123="D",AH124="D",AH125="D",AH126="D"),"D","")

    Is VLookup better when choosing between these end values. Is there a great source to help me understand that approach better? I could attach a spreadsheet sample if needed. Any help is greatly appreciated!

    Thanks!
    Last edited by ExcelDummy77; 08-06-2015 at 08:48 AM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF or VLookUP

    Looks like this should work...

    =IF(COUNTIF(AH102:AH109,"B"),"B",IF(COUNTIF(AH112:AH126,"D"),"D",""))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: IF or VLookUP

    Same, only different...

    =IF(COUNTIF($AH$102:$AH$109,"B")>0,"B",IF(COUNTIF($AH$112:$AH$126,"D")>0,"D",""))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    10-04-2013
    Location
    North Carolina, United States
    MS-Off Ver
    Excel 2007
    Posts
    56

    Re: IF or VLookUP

    Thank you both! Both work perfectly! I appreciate your help!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: IF or VLookUP

    You're welcome and thanks for the feedback!!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF or VLookUP

    You're welcome. We appreciate the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 12-04-2014, 01:27 PM
  2. Using vLookup based on results from a vLookup & returning an undetermined list
    By NormalityBan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-14-2014, 05:02 AM
  3. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  4. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  5. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  6. Replies: 5
    Last Post: 07-29-2009, 07:53 AM
  7. vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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