+ Reply to Thread
Results 1 to 8 of 8

Help with Lookup in conjuction with concatenate

Hybrid View

  1. #1
    Registered User
    Join Date
    10-28-2009
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2003
    Posts
    2

    Help with Lookup in conjuction with concatenate

    Hello Excel experts,

    I am trying to use the vlookup function to populate the cell highlighted yellow.
    Please see attached example. Refer to sheet sour,ce I need the 25th percentile for Labor Expense for Master Facility.

    I was trying to concatenate Ultrasound+Labor Expense+Master facility to lookup from the Source table.

    Is that even possible?

    Thank you,
    Nami
    Attached Files Attached Files
    Last edited by nami; 10-28-2009 at 09:13 PM. Reason: to say thank you

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Help with Lookup in conjuction with concatenate

    Try =SUMPRODUCT(--(Source!$B$2:$B$13=B2)*--(Source!$E$2:$E$13=C2)*--(Source!$F$2:$F$13="Master Facility TVRH"),Source!$H$2:$H$13)

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with Lookup in conjuction with concatenate

    whats with the spare * ? darkyam
    =SUMPRODUCT(--(Source!$B$2:$B$13=B2),--(Source!$E$2:$E$13=C2),--(Source!$F$2:$F$13="Master Facility TVRH"),Source!$H$2:$H$13)
    or
    =SUMPRODUCT((Source!$B$2:$B$13=B2)*(Source!$E$2:$E$13=C2)*(Source!$F$2:$F$13="Master Facility TVRH"),Source!$H$2:$H$13)
    surely?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Help with Lookup in conjuction with concatenate

    Spare *? You do realize your second formula has the same number of them, right? The "spare" could refer to --, but is that really worth calling me out when the formula already works and yours isn't significantly shorter?

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with Lookup in conjuction with concatenate

    no im asking why * and -- it looks unnecessary thats all

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Help with Lookup in conjuction with concatenate

    Sorry. I put the * instead of , in there because that's how I first saw the mods here doing it with conditions in a sumproduct formula, leaving the portion after the , to be the array added up or, in this case, looked up. My understanding was that when you have conditions that don't evaluate to numbers, you have to put -- before each condition to force it to evaluate to 1 or 0.

  7. #7
    Registered User
    Join Date
    10-28-2009
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help with Lookup in conjuction with concatenate

    Thanks for your responses.
    I am a little confused do I need to put a "*" or a "," between the Fx arguments?

    Thanks
    Nami

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help with Lookup in conjuction with concatenate

    Either will work in this case.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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