return a value from a search across multiple columns

buroh

New Member
Joined
Jul 14, 2020
Messages
46
Office Version
  1. 365
Platform
  1. Windows
I have searched and can't find what I am looking for, so I had to post this question.

I have a spreadsheet (not mine, it is a shared one created by someone else), it has columns/rows A1 - AW850.
Not every column is populated, but the further most ones are.

So, I need to return the value of the 1st column of 3 which the 3rd column is the value I am looking for.

for example:

Row 185
Columns:
AU AV AW
P02 Text 20.07.20

so in the example above: my match formula will find the value 20.07.20 in column AW185, but I need the formula to return the value of the cell that is 2 cells left of the matching value; which would be "P02" in column AU185

but not every column is populated, so AW in row 185 would have 20.07.20, but row 186, column S would be populated with 20.07.20, and so on.

the match formula works to find 20.07.20, but I am stuck on how to return the P02 value.
the P value will always be 2 cells left of the date in every row.

any help would be appreciated.

Wayne
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi & welcome to MrExcel.
What is the Match formula you already have?
 
Upvote 0
Ok, try
=INDEX(C185:AW185,MATCH("20.07.20",C185:AW185,0)-2)
 
Upvote 0
Solution
ooo thank you, that worked. I tried using index but got N/A. thankyou.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
Hello,

Thank you for your help in solving my formula issue, I am back, because I tried using this formula in another spreadsheet that is not mine and I get #N/A return from the formula above.

Is there a limit to how big the array can be in the formula for searching?

Wayne
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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