Help with INDEX and MATCH using two INDEX columns

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
700
Office Version
  1. 2010
Platform
  1. Windows
Hi:

The formula below is return required value from range N if value in E470 is greater than zero. But if value is less than zero, I want to return value from range O.

How can I adjust formula to return value in range O


IF(E474>0,INDEX(Sheet1!$N$15:$N$42,MATCH('CF WS'!B474,Sheet1!$M$15:$M$42,0)))


Thanks for your help.

Sean
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi,

What about when E474 is Exactly zero?
This modified formula uses Range N for >0, and uses Range O for zero or less:

=INDEX(IF(E474>0,Sheet1!$N$15:$N$42,Sheet1!$O$15:$O$42),MATCH('CF WS'!B474,Sheet1!$M$15:$M$42,0))
 
Upvote 0
Hi:

Excellent, thank you very much.

Sean
 
Upvote 0

Forum statistics

Threads
1,217,465
Messages
6,136,823
Members
450,026
Latest member
Thhoney

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