+ Reply to Thread
Results 1 to 12 of 12

vlookup + criteria

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    vlookup + criteria

    Hi guys

    I am having some issues trying to embed two formulas together or not sure where to begin.

    I have a list of account numbers that the dollar amount they have sold. That portion is pretty simple, however, one account number is listed multiple times under different headings by "dollar type" eg. coop or VB or new launch.

    Now, I am only interested in getting the dollar amount that is listed as coop, as an example.

    I tried this formula that I saw online but not sure how to make it work with my formula

    =IF(ISERR(SEARCH(W$9,'RB1'!J6)),"",VLOOKUP($D10,'RB1'!$E$6:$CR$1719,58))

    RB1 = sheet that contains "dollar type" and "sold amount".
    W9 = header that shows "coop"


    Any idea on how I can achieve this? thanks so much!

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: vlookup + criteria

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: vlookup + criteria

    Hey guys

    Pls see the attached sheet.

    I have highlighted in "green" the column from the RB1 sheet that I need the dollar amounts from.

    FYI - from the RB1 sheet

    column E = office #
    column J = dollar type
    column BJ = dollar amount

    Thank you in advance.
    Attached Files Attached Files

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: vlookup + criteria

    I'm taking a guess here that you want to match the head-office number and the PLT COOP or PLT VB with the value in RBI column BJ

    On the RBI worksheet I entered this formula in column A to determine if PLT COOP or PLT VB are in RBI COLUMN J
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    On OVERVIEW W10 enter this formula and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    On OVERVIEW X10 enter this formula and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BOTH FORMULAE are array formulae.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: vlookup + criteria

    Hi there

    thanks so much, that works awesome.

    One final refinement and I am not sure how to add it. Rather, I tried but it was is not working.

    There is another iteration of the way "PLT Coop" is written "2015 CO-OP PLT" and "2015 PLT CO OP ADVERT" -> is there a way to add in "Co-op" as well?

    I tried to modify the formula

    =IFERROR(IF(D6="","",IFERROR(IF(AND(SEARCH("*PLT*",J6),SEARCH("*COOP*",J6),SEARCH("*CO-OP*",J6))=TRUE,1,""),IF(AND(SEARCH("*PLT*",J6),SEARCH("*VB*",J6))=TRUE,2,""))),"")

    ^ see the part in bold, however it removes the 1 from lines where it shows "Coop"?

    Any idea on how to include that?

    Thanks a million!
    Last edited by jw01; 12-01-2015 at 10:30 AM.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,646

    Re: vlookup + criteria

    Try in W10:

    Please Login or Register  to view this content.
    X10:

    Please Login or Register  to view this content.
    Both are confirmed by Ctrl-shift-enter.
    Quang PT

  7. #7
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: vlookup + criteria

    Quote Originally Posted by bebo021999 View Post
    Try in W10:

    Please Login or Register  to view this content.
    X10:

    Please Login or Register  to view this content.
    Both are confirmed by Ctrl-shift-enter.
    Hey there

    Thanks so much for your input.

    The formula in W10 is not working properly. For example, for the first headoffice 7430624 -> if you manually filter column E in the RB1 sheet, you will see rows 1632+1634+1636+1638 state "2015 PLT COOP ADVERT", and in column BJ, it has value of 44K

    The formula above is showing 0 when it should read 44K.

    I did press cntrl+shift+enter

    Any idea on whats not working? thank you

  8. #8
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: vlookup + criteria

    Guys

    sorry, but one main thing i forgot to mention....the formula needs to "SUM" the values in the respective column eg. column BJ from RB1

    The formulas listed above take the first value that shows up.

    Any way to embed SUM into the formula?

    thank you in advance.

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,646

    Re: vlookup + criteria

    Try again:

    W10:

    Please Login or Register  to view this content.
    X10:

    Please Login or Register  to view this content.

    Opp, paid no attention to new request in #8. Will be back later.

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,646

    Re: vlookup + criteria

    Things should be easier with sum:

    W10:

    Please Login or Register  to view this content.
    X10:

    Please Login or Register  to view this content.
    Non array formula, enter only.

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: vlookup + criteria

    If you want the formula that I gave you to work change COOP to CO*OP in the formula on the RBI worksheet column A. This will return both COOP and CO-OP.

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,646

    Re: vlookup + criteria

    Quote Originally Posted by newdoverman View Post
    ... change COOP to CO*OP in the formula ...
    You mean "CO?OP" ?
    "CO*OP" including COOOOOP, i think.

+ 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. Large multi criteria / Vlookup/Choose Multi criteria
    By deanusa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2014, 01:48 AM
  2. [SOLVED] Vlookup with Criteria
    By jani.pk in forum Excel General
    Replies: 7
    Last Post: 03-11-2014, 07:42 AM
  3. Second criteria on vlookup
    By BrianBam in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2013, 01:37 PM
  4. 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
  5. VLOOKUP - two criteria
    By erahi in forum Excel General
    Replies: 7
    Last Post: 09-15-2012, 07:06 AM
  6. Vlookup with two criteria
    By mkvassh in forum Excel General
    Replies: 7
    Last Post: 10-22-2009, 08:21 AM
  7. vlookup with two criteria
    By hollister22nh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-25-2006, 07:45 AM

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