Can I make #N/A show as 0?

CharlieBeth

New Member
Joined
Sep 28, 2011
Messages
18
I want to be able to total these figures (from a HLookup), but clearly where there is no amount (because that person was not working that day) I get #N/A which means my total also reads #N/A

<table style="width: 367px; height: 57px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 66pt;" width="88"> <col style="width: 35pt;" width="47"> <col style="width: 45pt;" width="60"> <col style="width: 53pt;" width="70"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl26" style="height: 12.75pt; width: 66pt;" height="17" width="88">Staff</td> <td class="xl26" style="width: 35pt;" width="47">Day 1</td> <td class="xl26" style="width: 45pt;" width="60">Day 2</td> <td class="xl26" style="width: 53pt;" width="70">Sum</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" height="17">Emma C</td> <td class="xl25">£39.93</td> <td class="xl25">£27.73</td> <td class="xl25">£67.66</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl24" style="height: 12.75pt;" height="17">Elaine S</td> <td class="xl25">£27.73</td> <td class="xl25">#N/A</td> <td class="xl25">#N/A</td> </tr> </tbody></table>
I need the #N/A's to read 0 so I can still total all the days.

Can it be done?
 

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.
Try

=IF(ISNA(HLOOKUP(A18,$A$2:$DD$15,14,FALSE)),0,HLOOKUP(A18,$A$2:$DD$15,14,FALSE))
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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