+ Reply to Thread
Results 1 to 11 of 11

Dual Reverse Lookup [Row & Column Headers]

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2013
    Posts
    35

    Dual Reverse Lookup [Row & Column Headers]

    Dear Friends:

    I have a problem which is self explanatory in the attached Diagram. I am aware that this needs a Dual Bidirectional Reverse Look up which needs to be 'AND'ed to get a [1, 0]. I have been through examples of 'A single Reverse Lookup' (i.e. Column or Row Header). What I need is a formula that could be applied right across the bottom array here that will pick up the data from the top array to produce a 1 or a 0 in each cell.

    Thanking you in advance for any help.

    Problem.JPG
    Thanks a lot...

    - pd -

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Dual Reverse Lookup [Row & Column Headers]

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    11-26-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Dual Reverse Lookup [Row & Column Headers]

    Thank You. Will do that now...

  4. #4
    Registered User
    Join Date
    11-26-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Dual Reverse Lookup [Row & Column Headers]

    Here is the Worksheet.. nothing much more than my image... what I need to do is to have a '1' in B13 & D11
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Dual Reverse Lookup [Row & Column Headers]

    Try

    in B11

    =IF(AND(INDEX($B$2:$H$8,MATCH($A2,$A$2:$A$8,0),MATCH(B$1,$B$1:$H$1,0))=B$1,INDEX($B$2:$H$8,MATCH(B$1,$A$2:$A$8,0),MATCH($A2,$B$1:$H$1,0))=$A2),1,"")

    Copy across and down

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Dual Reverse Lookup [Row & Column Headers]

    or this (may be identical to JTs...)

    =IF(AND(ISNUMBER(MATCH(B$10,B2,0)),ISTEXT(INDEX($B$2:$H$8,MATCH(B$10,$A$2:$A$8,0),MATCH($A11,$B$1:$H$1,0)))),1,0)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Dual Reverse Lookup [Row & Column Headers]

    @GK,
    A bit "smarter" than my offering!

  8. #8
    Registered User
    Join Date
    11-26-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Dual Reverse Lookup [Row & Column Headers]

    Quote Originally Posted by JohnTopley View Post
    Try

    in B11

    =IF(AND(INDEX($B$2:$H$8,MATCH($A2,$A$2:$A$8,0),MATCH(B$1,$B$1:$H$1,0))=B$1,INDEX($B$2:$H$8,MATCH(B$1,$A$2:$A$8,0),MATCH($A2,$B$1:$H$1,0))=$A2),1,"")

    Copy across and down
    Dear John:

    Brilliant... Absolutely Brilliant. My idea was to get a '1' on those matching cells in the bottom array so that I could Highlight them corresponding cells in the top array. Have a look at the Image.

    You might be curious as to what this is all about. Astrology. Planets Sun, Moon & Saturn can see others in Positions 3 & 10 ahead. Mars & Mercury 4 & 8; Jupiter & Venus 5 & 9. All planets can see the 7th house ahead (Opp. 180°). It follows that some planets can see others but not have a reciprocal aspect unless they are in the 7th or either Jupiter or Venus in 1, 5, 9 Positions.

    Thank you very much once agin. I will mark this as [Solved] and Vote 1 for you.

    Glenn RIC: Will try your solution as well and revert. Thank you.

    Solved.JPG

  9. #9
    Registered User
    Join Date
    11-26-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Dual Reverse Lookup [Row & Column Headers]

    Quote Originally Posted by Glenn Kennedy View Post
    or this (may be identical to JTs...)

    =IF(AND(ISNUMBER(MATCH(B$10,B2,0)),ISTEXT(INDEX($B$2:$H$8,MATCH(B$10,$A$2:$A$8,0),MATCH($A11,$B$1:$H$1,0)))),1,0)
    Dear Glenn:

    Thanks for the reply. There seems to be a problem with the formula. It is simply replicating the text on the upper array with 1's in the bottom array without cross-checking if the same set of headers are transposed under their respective columns and rows.

    For examples: Mars here can 'see' Mercury but Mercury in return can't 'see' Mars. Sun can 'see' Saturn but Saturn in return can't 'see' Sun.

    See the comparison below obtained with the results of JT's formula.

    Both.JPG

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Dual Reverse Lookup [Row & Column Headers]

    Glad you got sorted.

    JT: proves (in this case anyway) that smarter <> correct..... !!!

  11. #11
    Registered User
    Join Date
    11-26-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Dual Reverse Lookup [Row & Column Headers]

    Thank you very much...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Lookup (index/match) and return column headers
    By Barslund in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-08-2017, 06:01 AM
  2. Reverse Lookup with No Row or Column Headings
    By DarkDestiny in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-27-2015, 12:29 PM
  3. [SOLVED] Dual column lookup & average
    By thilag in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2014, 03:14 AM
  4. [SOLVED] Reverse Lookup to Return Column Header (Date)
    By jeversf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2013, 12:27 PM
  5. Lookup row and column headers
    By pichon in forum Excel General
    Replies: 2
    Last Post: 03-22-2011, 12:04 PM
  6. Excel 2007 : Dual Column Lookup
    By Jofamannen in forum Excel General
    Replies: 4
    Last Post: 01-14-2011, 05:54 PM
  7. [SOLVED] Column Headers in my Excel sheet are in reverse order-reg
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2006, 03:05 AM

Tags for this Thread

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