View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default SUM - getting #VALUE! when some cells are blank

should be S20:DM20 instead of S1:DM1 in my previous reply. Here is a correct
version

=SUM(IF(MOD(COLUMN(S20:DM20),14)=5,S20:DM20))


"Teethless mama" wrote:

=SUM(IF(MOD(COLUMN(S20:DM20),14)=5,S1:DM1))

ctrl+shift+enter


"Sarah (OGI)" wrote:

I need to show the sum of every 14th cell from S20 to DM20. Some of these
cells will be blank.

The basic SUM formula I am using is:
=SUM(S20+AG20+AU20+BI20+BW20+CK20+CY20+DM20)

Due to some of the cells being blank, I am getting a result of #VALUE!

How can I get it to still show a value, i.e. to still sum the values that
are present?

Thanks