Results 1 to 5 of 5

Thread: Search Table With Formulas Or Arrays?

  1. #1
    Neophyte BillBundle's Avatar
    Join Date
    Oct 2020
    Posts
    3
    Articles
    0
    Excel Version
    2019

    Search Table With Formulas Or Arrays?



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Attached is my project for searching a table. I've tried using the Index(), the Match(), and the Vlookup(); but I'm getting frustrated trying to get these to work. Please help.

    I'm using Excel 2019.

    My Project.xlsm
    Last edited by AliGW; 2020-10-18 at 08:49 AM. Reason: Irrelevant section of title removed - this is a help forum!!!

  2. #2
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,471
    Articles
    0
    Excel Version
    Office 365 Subscription
    Welcome to the forum.

    There is little point in showing us formulae that don't work. Instead, manually fill in the results you want and post the workbook again. Explain in the post how you arrived at these results.
    Ali
    Enthusiastic self-taught user of MS Excel!

  3. #3
    Super Moderator Bob Phillips's Avatar
    Join Date
    Mar 2011
    Posts
    1,820
    Articles
    0
    Excel Version
    O365
    This gets you the time of day for Mars

    =INDEX($L$4:$L$27,MATCH($E19,INDEX($N$4:$T$27,0,MATCH($E$15,$N$3:$T$3,0)),0),1)

  4. #4
    Neophyte BillBundle's Avatar
    Join Date
    Oct 2020
    Posts
    3
    Articles
    0
    Excel Version
    2019
    The search is conducted as follows:

    1. The weekday criteria is in cell E15.
    2. The Positive Planet criteria is in cell E19.
    3. The Negative Planet criteria is in cell E20.
    4. First the search has to select the column for the weekday across the top of the table.
    5. With the weekday column selected the search has to find the Positive Planet in that column.
    6. Once the Positive Planet is found then the cooresponding hour is found in the column named "Hours From Sunrise" and retrieved as an answer in E24.
    7. With the same weekday column selected the search has to find the Negative Planet in that column.
    8. Once the Negative Planet is found then the cooresponding hour is found in the column named "Hours From Sunrise" and retrieved as an answer in E25.

    Quote Originally Posted by AliGW View Post
    Welcome to the forum.

    There is little point in showing us formulae that don't work. Instead, manually fill in the results you want and post the workbook again. Explain in the post how you arrived at these results.

  5. #5
    Neophyte BillBundle's Avatar
    Join Date
    Oct 2020
    Posts
    3
    Articles
    0
    Excel Version
    2019
    Thanks Bob,

    Your formula works and it returns the time of day. I didn't phrase my question correctly, since I needed the number of the hour from sunrise. So I changed your formula to this: =INDEX($M$4:$M$27,MATCH($E19,INDEX($N$4:$T$27,0,MATCH($E$15,$N$3:$T$3,0)),0),1) and I have the results that I needed.

    Quote Originally Posted by Bob Phillips View Post
    This gets you the time of day for Mars

    =INDEX($L$4:$L$27,MATCH($E19,INDEX($N$4:$T$27,0,MATCH($E$15,$N$3:$T$3,0)),0),1)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •