#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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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