#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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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
 
Upvote 0

Forum statistics

Threads
1,212,095
Messages
6,105,933
Members
447,985
Latest member
gigi11

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