+ Reply to Thread
Results 1 to 4 of 4

IF function to check results of a VLOOKUP and adjust value accordingly

  1. #1
    Registered User
    Join Date
    12-06-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    2

    IF function to check results of a VLOOKUP and adjust value accordingly

    Rather than assume I'm doing this, or rather failing to do this, correctly I'll briefly explain my objective.

    I'm managing a project spreadsheet in which one tab is loaded with details about each project, I have another tab which grabs info from the detailed tab but only particular tit bits to form part of an exec report, all of which is fine and working. The challenge I have is that I want to check in the detailed view for a particular value and if it's present display a different text rather than the actual value.

    So, for example, check the RAG status of Project A and if it says "Green" then only show G in the exec report. I've assumed I do a VLOOKUP and use an If loop to check for one of the 7 values that can be there.

    The 7 values are "Green, Amber, Red, Planning, Cancelled, Closed or Warranty" and I want to show in the exec section instead of that text just "G,A,R,Planning, C,C or Warranty".

    I'm completely stuck so any help is appreciated, sample attached.
    Attached Files Attached Files
    Last edited by DarrenHeaphy; 12-06-2010 at 04:26 PM.

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

    Re: IF function to check results of a VLOOKUP and adjust value accordingly

    If I understand correctly your intent, you can use a Nested Vlookup..

    Lookup the value from the Detailed Sheet, and then lookup the result in another sub-table.

    See attached.

    Formula used:

    =VLOOKUP(VLOOKUP(A2,'Detailed View'!$A$2:$B$8,2,0),$I$2:$J$8,2,0)

    Where I2:J8 contain the subtable.
    Attached Files Attached Files
    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.

  3. #3
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: IF function to check results of a VLOOKUP and adjust value accordingly

    Try:

    Please Login or Register  to view this content.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  4. #4
    Registered User
    Join Date
    12-06-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: IF function to check results of a VLOOKUP and adjust value accordingly

    You're both awesome, thank you very much

+ 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