+ Reply to Thread
Results 1 to 23 of 23

Three dimensional lookup???

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Question Three dimensional lookup???

    Need advice on Excel. Does anyone know if a three dimensional formula is possible in 2010? I need to pull from a named range (table) based on a number and then have it further pull from a cross section of a size as the column heading and a multiplier as the row title. Ex: table named range is test 123. When test 123 is entered in a cell I need excel to go to that table specifically and further pull the price from a specific size and multiplier. Any ideas????sample for help in excel.jpg
    Last edited by rajncajn; 05-31-2012 at 12:53 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Three dimensional lookup???

    rajncajn,

    Welcome to the forum!
    Unfortunately, your picture doesn't do much to help us out. What I think you need is something like this. See if you can adapt it:
    =INDEX(NamedRange,MATCH(Mutliplier,OFFSET(NamedRange,,,,1),0),MATCH(Size,OFFSET(NamedRange,,,1),0))

    I think Multiplier is cell J3 and I think Size is cell A3, but I'm not sure. I also don't see where the NamedRange is being typed in. I'm also not sure if the Mutlpliers are in the first column of the NamedRange or if the Sizes are in the first row of the NamedRange. The formula provided assumes that that is the case.
    Hope that helps,
    ~tigeravatar

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

  3. #3
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    Quote Originally Posted by tigeravatar View Post
    rajncajn,

    Welcome to the forum!
    Unfortunately, your picture doesn't do much to help us out. What I think you need is something like this. See if you can adapt it:
    =INDEX(NamedRange,MATCH(Mutliplier,OFFSET(NamedRange,,,,1),0),MATCH(Size,OFFSET(NamedRange,,,1),0))

    I think Multiplier is cell J3 and I think Size is cell A3, but I'm not sure. I also don't see where the NamedRange is being typed in. I'm also not sure if the Mutlpliers are in the first column of the NamedRange or if the Sizes are in the first row of the NamedRange. The formula provided assumes that that is the case.
    Ok, here is the form in excel. Hopefully that will help more. I've highlighted the cells and inserted comments for additional info. There are 5 named ranges that it needs to search in order to pull from the right pricing information.

    Ideally I would need to link workbooks with this particular formula so we only have to update one list price workbook (we have ALOT of pricing) and have the pricing formula pull from the pricing workbook which is set up with about 20 different worksheets. However; that may be overshooting the capabilities a little, I'm not sure.

    All help is greatly appreciated. After 2 days I'm about to pull my hair out and no one wants to see me pull a Britney...

    sample for help in excel.xlsx
    Last edited by rajncajn; 05-31-2012 at 09:37 AM. Reason: attachment

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Three dimensional lookup???

    Keep your comb! Try this

    =INDEX(Y:AE,MATCH(X1,Y:Y,0)+1+MATCH(J4,$Z$5:$Z$7,0),MATCH(A4,Y3:AE3,0))

  5. #5
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    Gave me an #N/A Where in there would I insert the named ranges for it to search? Match only allows 1 named range as an option.

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Three dimensional lookup???

    I placed that formula in cell L7 of the sample you provided in post #3. It provided the same value that was already there. I then changed the value in cell X1 and it provided the correct result.
    Have you changed anything in the file since posting it?

    And your sample doesn't have any named ranges.

  7. #7
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    It does work as long as that specific string is in x1, but when I choose other options for the body/trim it becomes n/a. It's still just pulling from the first table. That number in X1 will change frequently based on customer requests for specific body/trim, etc. The only time it should be N/A is when the customer requests something special. I'm making sure that I am putting in something that I know is in the named range.

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Three dimensional lookup???

    Currently, based on the sample you provided, the formula looks for the value found in cell X1 anywhere in column Y. If that value is not found in column Y you get #N/A. If it is found it will retrieve the value from the cell determined by the rest of the formula.

    You need to explain where these 'named ranges' are if they're not in columns Y:AE.

  9. #9
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    Named range F41880b is here ='Series F4'!$Y$3:$AE$7
    Named range F41880w is here ='Series F4'!$Y$15:$AE$19
    Named range f421480 is here ='Series F4'!$Y$28:$AE$32
    Named range f43128b is here ='Series F4'!$Y$9:$AE$13
    Named range f43128w is here ='Series F4'!$Y$22:$AE$26

    Does that help??

  10. #10
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    BTW... Thank you SO much for your help. I can maybe see a light at the end of the tunnel now. I may save my hair yet.

  11. #11
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Three dimensional lookup???

    So, apart from the sheet name designation, they're in columns Y:AE.

    Copy the formula that you are using (directly from the formula bar) and paste it here so we can look at it.

  12. #12
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    =INDEX(Y:AE,MATCH(X1,Y:Y,0)+1+MATCH(J4,$Z$5:$Z$7,0),MATCH(A4,Y3:AE3,0))

    That's what you gave me for L7. For some reason even though I am entering a number that I KNOW is there it's still giving me N/A

  13. #13
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Three dimensional lookup???

    Now that the forum seems to be working again - I copied that formula and pasted it into the formula bar (with cell L7 selected) and hit Enter.
    I got a value of $134.20. (Because cell X1 was showing F41880B and cell A4 was 2.00 and cell J4 was 0.55)
    I then typed F421480 in cell X1 - cell L7 then changed to $3,313.20 (apparently the right result)
    I then typed F41880W in cell X1 - cell L7 changed to $147.40 (again, apparently the right result)

    Make sure the number that you KNOW is there is exactly the same as what you are inputting in X1 (in other words there are no invisible characters like leading/trailing spaces in the cells in column Y).

  14. #14
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    Maybe it's because you are hard coding the text. I have a macro set to run because when the required data is entered into the area A4-K4. I have a Concatenate formula based off those choices in cell X3. I have a Macro set with CTRL+T that takes the concatenate set of data and puts it in a useable format for text. Do you think that could be why it isn't working??

  15. #15
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Three dimensional lookup???

    I would say so. But it's easy enough to see. Copy one of the numbers from the Y column and paste it into X1 or type one of the numbers directly into X1. If it works (and it certainly should) there is something wrong with the concatenated value.

  16. #16
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    Yep, that's what it is. Is there anyway to make that work??

  17. #17
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    This is my concatenate formula =CONCATENATE(B4&D4&E4&C4&G4) because I couldn't use the comma's with text field. Then I have a macro that copies and pastes the value from cell X3 to cell X1.

  18. #18
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    not text.. i mean numbered cells

  19. #19
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Three dimensional lookup???

    I just put =X3 in X1 to test the formula in X3 and it works OK. Why do you need a macro?

  20. #20
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    Ok, the forum wasn't updating so i didn't see my posts are your. That actually works!! THANK YOU THANK YOU THANK YOU!!!!! I am sane again
    Last edited by rajncajn; 05-31-2012 at 12:37 PM. Reason: wrong info

  21. #21
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Three dimensional lookup???

    And you still have hair!! You're welcome. Don't forget to mark your thread as SOLVED (for instructions see rule #9 by clicking Forum Rules @ top of page)

  22. #22
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Three dimensional lookup???

    BTW - your CONCATENATE formula can just be =B4&D4&E4&C4&G4

  23. #23
    Registered User
    Join Date
    05-29-2012
    Location
    houston, tx
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Three dimensional lookup???

    Quote Originally Posted by Cutter View Post
    And you still have hair!! You're welcome. Don't forget to mark your thread as SOLVED (for instructions see rule #9 by clicking Forum Rules @ top of page)
    LOL, thank God for small favors. I will go mark it solved. Seriously, you saved me MANY more hours of frustration trying to get this resolved.

    Thanks!

+ 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