Index Formula help.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
Hi everyone,

I have this formula : =INDEX(G25:P25,1,C25)

But when C25 is a 0 the formula return : #VALUE!

What need to be added for the formula to work ?

Thank you. Serge.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi Andrew,

It's just that I have some data in G:P that need to be put in column R, but when in column C I hit a 0 the return in column R is : #VALUE! and should be which ever number it suppose to be from G:P.
 
Upvote 0
Thank you Andrew, for the formula but it doesn't work for me it returned a blank cell !!!
 
Upvote 0
Thank you again for your help Andrew but I found the answer.

The formula that I needed is : =INDEX(G25:P25,1,IF(C25=0,10,C25))

Regards... Serge.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,750
Members
452,940
Latest member
rootytrip

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