+ Reply to Thread
Results 1 to 5 of 5

Need a formula to return a specific value based on the potential combination of 2 cells

  1. #1
    Registered User
    Join Date
    01-16-2019
    Location
    us
    MS-Off Ver
    10
    Posts
    16

    Need a formula to return a specific value based on the potential combination of 2 cells

    Need a formula to return a specific value based on the potential combination of 2 cells - after a vlookup.

    So Currently have a vlookup mapping 1 column to certain categorie
    need it to say then - after doing that lookup - if 2 cells contain certain text - then the return value is X.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,824

    Re: Need a formula to return a specific value based on the potential combination of 2 cell

    Welcome to the forum!

    Your description of what you want is not clear to me. What's the relationship between the result of the VLOOKUP and the two cells containing text?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-16-2019
    Location
    us
    MS-Off Ver
    10
    Posts
    16

    Re: Need a formula to return a specific value based on the potential combination of 2 cell

    Thanks!! So the vlookup is the main mapping formula then was hoping to build on top of that to say ALSO if 2 other cells have certain text to change the output, maybe I need to rethink formula. But now I have:


    Tab 1: holds the data looking up to (E:K)

    Tab 2: H1 = IFERROR(VLOOKUP(F2,'Job Type Mapping (Input)'!$E:$K,7,0),"")

    + now trying to say in addition to this vlookup , look at the combination of Cells F1 AND G1 = IF they say:
    F1: JA & G1: PX THEN H1: now says: XYZ

    Does that make sense? Thanks sooooo much for your help!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Need a formula to return a specific value based on the potential combination of 2 cell

    Try it like this:

    H1 = IF(AND(J1="JA",G1="PX"),"XYZ",IFERROR(VLOOKUP(F2,'Job Type Mapping (Input)'!$E:$K,7,0),""))

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    01-16-2019
    Location
    us
    MS-Off Ver
    10
    Posts
    16

    Re: Need a formula to return a specific value based on the potential combination of 2 cell

    YESSSSSSS - you saved me TYTYTY

+ 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. [SOLVED] Return unique values based on potential multiple conditions
    By C J W in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-29-2017, 10:14 AM
  2. Return relative position based on combination of two cells
    By Antoddio in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-13-2016, 03:53 PM
  3. [SOLVED] Potential combination of LookUp and DeDupe to create multiple values in a single cell
    By Bwambale in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-25-2016, 08:51 AM
  4. Replies: 3
    Last Post: 09-04-2014, 01:41 PM
  5. [SOLVED] Formula's value based off combination of two other cells
    By kosherboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2014, 10:35 PM
  6. [SOLVED] Formula to return specific text based on multiple cells meeting a single criteria
    By missydanni in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2013, 09:48 AM
  7. [SOLVED] Combination IF/VLOOKUP to Return Specific Value
    By Shadefalcon in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-09-2013, 04:14 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