+ Reply to Thread
Results 1 to 3 of 3

matching values based on criteria and return values from another columns

  1. #1
    Registered User
    Join Date
    04-23-2012
    Location
    Brew City
    MS-Off Ver
    Excel 2007
    Posts
    9

    matching values based on criteria and return values from another columns

    I have data consists of 4 columns. I would like to return the value in column1 and column4 based on the criteria (1) if column2 match user inputs valude, (2) column 3 equals to D, and (3) column 4 <= 3. I have tried lookup and match and couldn't seem to make this to work. Wonder if this need to be done in VBA or using Excel formula?

    I appreciate any advice / help anyone can provide. Thank you much.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: matching values based on criteria and return values from another columns

    Your results are incorrect

    You say
    If user input in cell B2 (your example sheet says the user input is in B1)


    ...match value in column 2
    If column 3 = D
    If flag value >=1

    then output should be

    A 1
    G 2


    Considering rows where column A = G
    Row 6 column B does not B1
    Row 7 column 3 does NOT = D

    so the only output would be

    A 1

    no G's

    This formula works
    Please Login or Register  to view this content.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    04-23-2012
    Location
    Brew City
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: matching values based on criteria and return values from another columns

    Thanks for your inputs, Special-K. Actually, I meant to put the D in cell C7. I would like to look at the array and generate the output as in:
    A 1
    G 2

    What would be a good way to work with array? Thank you in advance.

+ 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