Searching A Table

PC User

New Member
Joined
Dec 11, 2012
Messages
32
I've been goggling for a formula to search a table using a planet name to find the day corresponding to that planet. In this table the planet name is directly underneath the day of the week. For example, I have the planet Venus to search the table; the formula should return the day of the week as Friday. The formula should only search two rows (T3:Z4) of this table and return the name of the day of the week. I've tried a number of ways to do this and I cannot seem to get anything to work. The sub-table to search is T3:Z4. Please help.

screenshot.1114.jpg
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Place value to find in cell A1
The 2 formulas required are:

=INDEX(T2:Z2,MATCH(A1,T3:Z3,0))

<tbody>
</tbody>
=INDEX(T2:Z2,MATCH(A1,T4:Z4,0))

<tbody>
</tbody>

If you want both days in one cell:
=INDEX(T2:Z2,MATCH(A1,T3:Z3,0))&" & " &INDEX(T2:Z2,MATCH(A1,T4:Z4,0))
(Mercury returns Wednesday & Friday)
 
Last edited:
Upvote 0
Hi,

I interpreted the OP's question as such:


Excel 2010
STUVWXYZ
3SundayMondayTuesdayWednesdayThursdayFridaySaturday
4SunMoonMarsMercuryJupiterVenusSaturn
5
6SearchResult
7VenusFriday
Sheet32
Cell Formulas
RangeFormula
T7=INDEX(T3:Z3,MATCH(S7,T4:Z4,0))
 
Upvote 0
Your interpretation is correct. I'm getting an error and I cannot figure out why. See the yellow alert box next to the cell with the formula.

screenshot.1116.jpg


Hi,

I interpreted the OP's question as such:

Excel 2010
STUVWXYZ
3SundayMondayTuesdayWednesdayThursdayFridaySaturday
4SunMoonMarsMercuryJupiterVenusSaturn
5
6SearchResult
7VenusFriday

<tbody>
</tbody>
Sheet32

Worksheet Formulas
CellFormula
T7=INDEX(T3:Z3,MATCH(S7,T4:Z4,0))

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
So here you're trying to Match P31, which is Mars, is that right?

The #N/A error would mean that there is No match, how is the value "Mars" entered in P31?
Also, the Table you're looking up as shown in your 1st post, how is that Table generated? Imported, manually entered, etc.?
 
Upvote 0
The value "Mars" is a result in of another search formula in P31 which looked up the ruling planet for Aries from another table. I then reference to P31 in the formula contained in P32 to find the "Day of the Week" from the first table that I displayed in post #1 . Is it a problem to reference another cell with a formula? Cell P31 contains a search formula, but displays the results. In P32 I'm trying to reference the result, not the formula in the cell. All tables were created manually and were not generated.

So here you're trying to Match P31, which is Mars, is that right?

The #N/A error would mean that there is No match, how is the value "Mars" entered in P31?
Also, the Table you're looking up as shown in your 1st post, how is that Table generated? Imported, manually entered, etc.?
 
Last edited:
Upvote 0
It's perfectly ok to reference another cell that contains a formula for the result of that cell...
But you didn't tell me Where the Table(s) come from, if it's imported, often times they contain "Hidden Characters", that will cause the values Not matching Up.
Try and see if adding wildcards will do it:


Excel 2010
PSTUVWXYZ
3SundayMondayTuesdayWednesdayThursdayFridaySaturday
4SunMoonMarsMercuryJupiterVenusSaturn
5
31Mars
32Tuesday
Sheet32
Cell Formulas
RangeFormula
P32=INDEX(T3:Z3,MATCH("*"&P31&"*",T4:Z4,0))
 
Upvote 0
To be honest, I was debating on whether to download your file or Not, since it's an XLSM macro enabled workbook, but decided to go ahead but disabled macros.
Was going to ask you to re-upload the file as an XLSX file...

Anyway, your Table is on a different tab in the workbook, and you Didn't reference the tab in the formula, this will work:


Excel 2010
CDE
21Zodia Sign from Natal Date's Ephemeris:Aries
22Positive Planet from Rulership Table:Mars
23Negative Planet Paired with Ruling Planet:#Mercury
24Day of Week using Rulership Planet:Tuesday
TURN Times Method 2
Cell Formulas
RangeFormula
E24=INDEX(Reference!$T$3:$Z$3,MATCH($E$22,Reference!$T$4:$Z$4,0))
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,058
Latest member
oculus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top