Right to Left index/match

jimbowilmore

New Member
Joined
Jan 20, 2017
Messages
12
All~

I am looking to write a formula that takes the data from u2:dr2, find the first reference to the number 70, search right to left, and then returns the corresponding date in u1:dr1.

I have tried all kinds of things and just can't seem to get it correct. Do any of your brilliant minds have time to assist me?

Thanks!

jimbo
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Are you trying to find the last column that has the number 70 (right to left search)?
If so, try:
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Code:
[TABLE="width: 576"]
<colgroup><col width="576"></colgroup><tbody>[TR]
   [TD="width: 576"]INDEX($U$1:$DR$1,MAX(IF($U$2:$DR$2=70,COLUMN($U$2:$DR$2)-COLUMN(U2)+1)))[/TD]
 [/TR]
</tbody>[/TABLE]
 
Upvote 0
Are you trying to find the last column that has the number 70 (right to left search)?
If so, try:
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Code:
[TABLE="width: 576"]
<colgroup><col width="576"></colgroup><tbody>[TR]
   [TD="width: 576"]INDEX($U$1:$DR$1,MAX(IF($U$2:$DR$2=70,COLUMN($U$2:$DR$2)-COLUMN(U2)+1)))[/TD]
 [/TR]
</tbody>[/TABLE]
I am not sure how specifying the entire row range affects the dependency tables, but this is a simpler construction for your formula (still needs to be array-entered)...

=INDEX(1:1,,MAX(IF(U1:DR1=70,COLUMN(U1:DR1))))
 
Upvote 0
This non-array entered formula may work for you:

=LOOKUP(2,1/(U2:DR2=70),U1:DR1)
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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