#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
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,539
Messages
5,832,327
Members
430,128
Latest member
ojl987

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