View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Andy H Andy H is offline
external usenet poster
 
Posts: 1
Default sumif function leaving a blank cell when criteria not met

I'm having some difficulty trying to clean up a spreadsheet and need some help.

I'm using SUMIF to fill a section on my worksheet where i can check for
totals by value (example: A1:A30 is data and B1:B30 is a number 1-5, i then
am tracking the SUM of each number from B1:B30) which is working ok, except
that i occasionally have unused numbers that leave a "0" for a result in my
SUMIF function. IF for example in B1:B30 i have no "2" my formula still
leaves a "0" and that can be very harmful to my book keeping.

Example of Forumla:

{=SUMIF(B1:B30,2,A1:A30)}
Is there then a way to show "N/A" for unused values?
TIA