+ Reply to Thread
Results 1 to 14 of 14

Use two lists to locate a cell within a table...

  1. #1
    Registered User
    Join Date
    07-30-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Use two lists to locate a cell within a table...

    Hi All,

    Many thanks in advance for any help provided. I'm at a loss.

    I would like to use a pair of lists to cross reference a particular cell within a table, and output that result to another cell.

    For example, the table has three columns, A, B, C; and four rows, 1, 2, 3, 4. I would like to select, A from the first list, and 1 from the second list, and have the result displayed on another cell. I've attached an example in case this isn't too clear.

    Cheers.
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Use two lists to locate a cell within a table...

    hi xpresso, welcome to the forum. not really sure what you need. so when the Type shows "A" & Area shows "1", you want it to return the value "100"? Or do you want it to return what is in cell A1?

    for the former, try:
    =INDEX(C6:E9,MATCH(C3,B6:B9,0),MATCH(C2,C5:E5,0))

    for the latter, try:
    =INDIRECT(C2&C3)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    07-30-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Use two lists to locate a cell within a table...

    Hi Benishiryo,

    Many thanks for your reply. The 'former' formula works perfectly, except when I change the list values the resulting cell doesn't seem to change/refresh.

    Kind regards.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Use two lists to locate a cell within a table...

    your calculation is probably set to "Manual". Cant remember exactly where the option is at Excel 2003. I think it's at Tools -> Options. Under a "Calculation" tab probably. Set it to "Automatic". If you need it to be "Manual", press F9 to recalculate.

  5. #5
    Registered User
    Join Date
    07-30-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Use two lists to locate a cell within a table...

    Brilliant. Thankyou so much.

    ---------- Post added at 02:21 PM ---------- Previous post was at 12:59 PM ----------

    To throw in a curve ball, if I wanted to make a calculation on the result which was variable (depending on the options chosen), would that be possible?

    For example, for each 'Type' A, B, and C, there was a different calculation.

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Use two lists to locate a cell within a table...

    would you explain further? based on your sample, what is supposed to show & how you get that?

  7. #7
    Registered User
    Join Date
    07-30-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Use two lists to locate a cell within a table...

    Ok so if we choose a cell in column A, there would be a particular sum which accompanies the result. Conversely there would be a different sum for each of columns B and C.

  8. #8
    Registered User
    Join Date
    07-30-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Use two lists to locate a cell within a table...

    Hi Benishiryo,

    I've attached an example document which might help.

    Many thanks.
    Attached Files Attached Files

  9. #9
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Use two lists to locate a cell within a table...

    sorry, you might need to provide more info. with your latest eg, your explanations above are not valid right? there's no column A to select. your dropdown is in H6 & it selects the equation signs. your formula in H7 then picks out the numbers below the equation signs. so what is it that you need? Original No & use the equation with the value?

  10. #10
    Registered User
    Join Date
    07-30-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Use two lists to locate a cell within a table...

    So I'd like to take the original number "C2" and, using the drop down menu, select one of the calculations along C-F6 (with the variables below) to calculate a result in H7. So choosing sum method X would multiply C2 with C7.

  11. #11
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Use two lists to locate a cell within a table...

    you can try this:
    =CHOOSE(MATCH(H6,C6:F6,),C2*C7,C2/D7,C2-E7,C2*F7)

  12. #12
    Registered User
    Join Date
    07-30-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Use two lists to locate a cell within a table...

    Perfect. Thankyou again!

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

    Re: Use two lists to locate a cell within a table...

    @ xpresso

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  14. #14
    Registered User
    Join Date
    07-30-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Use two lists to locate a cell within a table...

    Hi Cutter,

    Many thanks, will remember to mark it as solved in future. I have already added a star to Mr. Benyshiro.

    Appreciate your input.

+ 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