#n/a

crtas1

Board Regular
Joined
Jul 9, 2002
Messages
55
Is there anyway to set up a formula to look through a whole spreadsheet and make all #n/a =0?

I was thinking a VLookup with an IF statement but I can't pull it off.

Thanks
 

Some videos you may like

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
On 2002-09-10 13:19, crtas1 wrote:
Is there anyway to set up a formula to look through a whole spreadsheet and make all #n/a =0?

I was thinking a VLookup with an IF statement but I can't pull it off.

Thanks

You can modify your VLOOKUP formula.

Two options:

=IF(ISNUMBER(MATCH(lookup-value,INDEX(LTable,0,1),0)),VLOOKUP(lookup-value,LTable,ColIdx,0),0)

where LTable refers to the range that houses your lookup table.

=IF(ISNA(SETV(VLOOKUP(...))),0,GETV())

The 2nd option requires morefunc.xll, an add-in that you can download from:

http://longre.free.fr/english/index.html

Edited in order add GETV().
This message was edited by Aladin Akyurek on 2002-09-11 06:16
 

Watch MrExcel Video

Forum statistics

Threads
1,122,190
Messages
5,594,761
Members
413,931
Latest member
acrato

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
Top