+ Reply to Thread
Results 1 to 25 of 25

A 3 dimensional table question

Hybrid View

  1. #1
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    A 3 dimensional table question

    Hi,
    Attaching the data table. Ideally I would like to have users enter
    1. the height and lateral run (columns A and B)
    2, Yes/No to a Fan being present (Row 4)
    3. A "value" listed in the correct columns (FAN or No FAN) - row 6 downward

    Once it finds the "value", returns the value in row 3
    Attached Files Attached Files
    Last edited by delaneybob; 06-15-2012 at 11:08 AM.

  2. #2
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    I have tried to make this work with index- match and vlookup by removing some data, dropping the lateral run, but still having issues. I guess the main issue is I need to return the top row values when looking up something in the table- instead of the other way around

    Any help appreciated

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: A 3 dimensional table question

    Please post in your workbook the values your looking for, and the desired anwer (2 examples)

    Then i will look if i can solve your problem.

  4. #4
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    Great- I have reuploaded the workbook but at version 2 where i included what i have been trying to do outside of a VBA solution. Ideally i would want a VBA solution to work on the desired sheet but the acceptable sheet has what i am trying to do with equations

    Yellow highlight illustrates the issue using equations


    Much appreciated!
    Attached Files Attached Files

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

    Re: A 3 dimensional table question

    delaneybob,

    Attached is a modified version of your original workbook. Is something like that what you're looking for?
    Hope that helps,
    ~tigeravatar

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

  6. #6
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    Sorry misposted

  7. #7
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    I erased the post because I was not clear in what i responded with

    Here is an example of what I am looking for

    For example:

    Height=100
    Lateral Run=30
    Value-7000 (this is not calculated)- it's user defined

    program goes to that row,->finds the next highest value which is 7209

    Then looks up to Row 3

    And returns 18

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

    Re: A 3 dimensional table question

    delaneybob,

    Version 2 is attached.

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: A 3 dimensional table question

    Maybe this way?

  10. #10
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    Hi- Great job-wow. I am looking to see if there is a way to make the Fan yes/no work. I would try to change the equation but can you please try?

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: A 3 dimensional table question

    delaneybob,

    It's helpful if you say who you're responding to ...
    Entia non sunt multiplicanda sine necessitate

  12. #12
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    tigeravatar- sorry about that

  13. #13
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: A 3 dimensional table question

    Using the data in the OP,
    With the user entered height in A1, Lateral in B1, Value in C1 and "Fan/no fan" in D1,

    =INDEX(Chimney!$A$4:$R$49, MATCH(A1&","&B1, $A$5:$A$49&","&$B$5:$B$49, 0), MATCH(C1, $3:$3,--(D1<>"Fan")))
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  14. #14
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    Replying to tigeravatar first- I transposed the equation to the working spreadsheet and I get the correct values when I look at the fx function in excel but the Result is #value!- I verfied all data is formatted to a number.

    Any ideas?

  15. #15
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    To tiger avatar- Attaching what I am seeing- I tried it 2 ways- directly on same sheet and like you did
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    to tiger avatar- on your file, I noticed a {= in the formula beginning and a closing } that shows up when I click on the Value calculation (long equation). If I enter the equation and change nothing- it results in #N/A.

  17. #17
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    to oeldere - Same issue with yours ( I removed the absolute references to copy it over)- Column is #N/A- but row works

  18. #18
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    to oeldere I have my mistake figured out- wow silly error

    to tiger avatar- let me first fix what oeldere has working in my workbook and then will see why yours has issues (likely same cause)

    Many thanks!- will repost if I still have issues

  19. #19
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: A 3 dimensional table question

    On the solution of tiger avatar you need to close your formula with CNTRL + SHIFT + ENTER instead of enter.

    Excel puts the { }.

    It is an array formula.
    Last edited by oeldere; 06-16-2012 at 12:44 PM.

  20. #20
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    WOW!- thank you very much- I dissected the equation and it's parts and kept gluing them togther. Break for me- i will come back and get it to work- again thanks so much

  21. #21
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    I am looking at mike's suggestion on how to include Fan yes/no. The Yes/no was not in what tigeravater sent- do i have to redo the entire equation with the fan index statement or is that possible since it is in a row vs column? I am trying to understand the tigeravatar construct

  22. #22
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    Yes need help- can't figure where to put the check for fan or not

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

    Re: A 3 dimensional table question

    delaneybob,

    Sorry for the delayed response, haven't checked the forum since Friday. Attached is a modified version of your Drive file. Both formulas have been updated to include the fan Yes/No option. I didn't include it at first because I wasn't quite sure what it was you were looking for, but now I'm pretty sure what it is you're after.
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    02-06-2012
    Location
    roswell
    MS-Off Ver
    O365
    Posts
    95

    Re: A 3 dimensional table question

    Many thanks- I understand (I think) the logic now- very simple but powerful. I appreciate the patience- hopefully I have learned enough to do it myself next time.

    Very appreciative and grateful tigeravatar

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

    Re: A 3 dimensional table question

    You're very welcome

+ 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