N/A values

jturn

New Member
Joined
Apr 4, 2011
Messages
8
I've created a spreadsheet with the help of this site (very greatful) for our restaurant's catering business. Within this spreadsheet I have 3 worksheets. The first is called "menu items" and its a list of the those items that we sell as well as the unit cost. The second is "Information". In this worksheet we enter all the information for the catering event including a table that has drop down list of the menu items created and the vlookup function to carry over the appropriate unit cost for the item selected. The third worksheet is a preformated invoice. In this one, cells are linked from the "Information" sheet to fill in the correct informtion. The problem that I'm having is the table in the Invoice page returns "N/A" because no items (or not enough) items are selected for those particular cells. Therefore it won't calculate a sum because of the "N/A" in the column. Is there a way for it to return a blank value if no items are selected for that cell or is there a better way to set this up.

thanks,
Jturn
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
If you want to do a sum, return a zero in cases of an "#N/A" error, using this kind of layout:

=IF(ISNA(VLOOKUP(...)),0,VLOOKUP(...))
where
VLOOKUP(...) is your current VLOOKUP formula.
 
Upvote 0
I've created a spreadsheet with the help of this site (very greatful) for our restaurant's catering business. Within this spreadsheet I have 3 worksheets. The first is called "menu items" and its a list of the those items that we sell as well as the unit cost. The second is "Information". In this worksheet we enter all the information for the catering event including a table that has drop down list of the menu items created and the vlookup function to carry over the appropriate unit cost for the item selected. The third worksheet is a preformated invoice. In this one, cells are linked from the "Information" sheet to fill in the correct informtion. The problem that I'm having is the table in the Invoice page returns "N/A" because no items (or not enough) items are selected for those particular cells. Therefore it won't calculate a sum because of the "N/A" in the column. Is there a way for it to return a blank value if no items are selected for that cell or is there a better way to set this up.

thanks,
Jturn
You could invoke a SumIf formula in order to total a range with #N/A's...

=SUM(SUMIF(Range,{"<0",">0"}))
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,794
Members
452,943
Latest member
Newbie4296

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