Help with INDEX and MATCH using two INDEX columns

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
721
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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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,225,750
Messages
6,186,808
Members
453,373
Latest member
Ereha

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