Formula Help Please

Jtucker10278

Board Regular
Joined
May 14, 2017
Messages
65
Office Version
  1. 365
Platform
  1. Windows
its late and i cant figure this out

=IF(COUNTIF(INDIRECT(N$4),">0"),SUM(INDIRECT(N$3) ($B10)),"") gives me a #Ref error

=IF(COUNTIF(INDIRECT(N$3),">0"),SUM(INDIRECT(N$3) ($B10)),"") gives me a #Value error

=IFERROR(SUM(INDIRECT(P$3) INDIRECT($B12)),"") returns 0 (and i dont want 0 i have to count the blank cells)

=IFERROR(SUM(INDIRECT(P$3) INDIRECT($B9)),"#N/A") also returns 0

=IF(COUNTIF(INDIRECT(P$3),">0"),SUM(INDIRECT(P$3) Day_Total),"") this works perfectly and does not return 0 but i cant figure out how to modify it for the rest of the cells


Note the names in column B are referencing named ranges and the Week_# in row 3 are also referencing named ranges

BCDEFGHIJKLMNOP
Week_1Week_2Week_3Week_4Week_5Week_6Week_7Week_8Week_9Week_10Week_11Week_12Week_13Week_14
Days Worked
Hours Worked
Avg Asm Day
Week Total
OTHER
A_Sanchez
A_Holmes
B_Perez
C_Reynolds
M_Lopez
M_Reynolds
M_Tran
N_Fonseca
T_Stohler
S_Hernandez

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]3[/TD]
[TD="align: center"]6[/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]40[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]46[/TD]
[TD="align: right"]49.5[/TD]
[TD="align: right"]51.5[/TD]
[TD="align: right"]51.5[/TD]
[TD="align: right"]51.5[/TD]
[TD="align: right"]51.5[/TD]
[TD="align: right"]51.5[/TD]
[TD="align: right"]51.5[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"]10.0[/TD]
[TD="align: right"]8.2[/TD]
[TD="align: right"]8.8[/TD]
[TD="align: right"]9.2[/TD]
[TD="align: right"]9.2[/TD]
[TD="align: right"]9.7[/TD]
[TD="align: right"]9.3[/TD]
[TD="align: right"]9.2[/TD]
[TD="align: right"]9.8[/TD]
[TD="align: right"]10.0[/TD]
[TD="align: right"]10.2[/TD]
[TD="align: right"]9.8[/TD]
[TD="align: right"]9.6[/TD]

[TD="align: center"]7[/TD]

[TD="align: right"]237[/TD]
[TD="align: right"]282[/TD]
[TD="align: right"]327[/TD]
[TD="align: right"]308[/TD]
[TD="align: right"]371[/TD]
[TD="align: right"]418[/TD]
[TD="align: right"]448[/TD]
[TD="align: right"]489[/TD]
[TD="align: right"]461[/TD]
[TD="align: right"]535[/TD]
[TD="align: right"]385[/TD]
[TD="align: right"]392[/TD]
[TD="align: right"]438[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]10[/TD]

[TD="align: right"]15[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]52[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]61[/TD]
[TD="align: right"]52[/TD]
[TD="align: right"]81[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"] #Value ![/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]11[/TD]

[TD="align: right"]20[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]47[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]54[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]52[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"][/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]12[/TD]

[TD="align: right"]22[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]33[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"][/TD]
[TD="align: right"]46[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]13[/TD]

[TD="align: right"]15[/TD]
[TD="align: right"]28[/TD]
[TD="align: right"]33[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]58[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]59[/TD]
[TD="align: right"]46[/TD]
[TD="align: right"][/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]14[/TD]

[TD="align: right"]21[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]72[/TD]
[TD="align: right"]44[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]72[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"][/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]15[/TD]

[TD="align: right"]32[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]56[/TD]
[TD="align: right"]46[/TD]
[TD="align: right"][/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]16[/TD]

[TD="align: right"]31[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]44[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]56[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]74[/TD]
[TD="align: right"]42[/TD]
[TD="align: right"][/TD]
[TD="align: right"]52[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]17[/TD]

[TD="align: right"]34[/TD]
[TD="align: right"]28[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]42[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]54[/TD]
[TD="align: right"]62[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]55[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"][/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]18[/TD]

[TD="align: right"]10[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"][/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]19[/TD]

[TD="align: right"]35[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]47[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]49[/TD]
[TD="align: right"]44[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]33[/TD]
[TD="align: right"][/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]0[/TD]

</tbody>
Wk_Totals
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
It looks like you probably want something like this:

=IF(COUNTIF(INDIRECT(N$3),">0"),SUM(INDIRECT(N$3) INDIRECT($B10)),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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