#VALUE!

bfuentes1412

New Member
Joined
Apr 21, 2010
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Hello,
I'm trying to sum values from 4 cells, G17, H17, I21, & I23, in I25 however, two cells, G17 & H17, need to be divided by .9. I have set all totals in row 17, along with I21 & I23 to "" when value is zero or displays an error b/c of zero value. When attempting to sum the values, if any cell is empty/blank I receive the "#VALUE!" error and it won't show any total sums. I've tried a combination of =IF(ISERROR), IF(SUM) but no joy. If ANY of the cells are blank it won't show the total. I know setting the total values to "" is the culprit but I'm sure there's a way to work around this. In the example below, the total should actually be 147.89

All in One Calculator v2.xlsm
CDEFGHIJKL
6
7CLIMATE ZONE3, 5, 7
8(KW)
9UNIT /DESIGNEvHSEAddt'l# ofKVA perEV
10BLDGSq.Ft# of Cust.IncludedLoadLoadEVChargerLoad
111120022YES2222 
122 
133 
144 
155 
16
17TOTAL120022YES2222   
18(Avg.)(KW)(KW)(Avg.)(KVA)
19
20
21DESIGN SQ.FT1200MAX DWELLING99.00(KVA)
22
23INITIAL XFMR SIZE150EV LOAD (KVA)
24
25MAX # OF CUST.40TOTAL LOAD#VALUE!(KVA)
26
27KVA PER CUST.4.50RECOMMENDED 
28XFMR SIZE
29
Calculator
Cell Formulas
RangeFormula
K11:K15K11=IF(SUM(I11)*(J11)=0,"",SUM(I11)*(J11))
D17D17=IFERROR(SUM(D11:D15/(COUNTA(D11:D15))),"")
E17,G17:I17,K17E17=IF(SUM(E11:E15)=0,"",SUM(E11:E15))
F17F17=IF(COUNTA($F$11:$F$15),IF(COUNTIF($F$11:$F$15,"YES"),"YES","NO"),"")
J17J17=IF(SUM(J11:J15)=0,"",SUM(J11:J15/(COUNTA(J11:J15))))
E21E21=IF(""=D17,"",INDEX(AY4:AY14,MATCH(1,--(AY4:AY14>=D17),0)))
I21I21=IFERROR((E27*E17),"")
E23E23=IFERROR(IF(E7<9,INDEX(FILTER(AQ4:AQ91,(AO4:AO91=F17)*(AP4:AP91=E21)*(AR4:AR91>=E17),"0"),1),INDEX(FILTER(AJ4:AJ91,(AH4:AH91=F17)*(AI4:AI91=E21)*(AK4:AK91>=E17)),1)),"")
I23I23=K17
E25E25=IFERROR(IF(E7<9,INDEX(AR4:AR91,MATCH(1,(AP4:AP91=E21)*(AO4:AO91=F17)*(AQ4:AQ91=E23),0)),INDEX(AK4:AK91,MATCH(1,(AI4:AI91=E21)*(AH4:AH91=F17)*(AJ4:AJ91=E23),0))),"")
I25I25=SUM((G17:H17)/0.9+I21+I23)
E27E27=IFERROR((E23*1.2)/E25,"")
I27I27=IFERROR(IF(0=I25,"",INDEX(AU4:AU9,MATCH(1,--(AV4:AV9>=I25),0))),"")
Cells with Data Validation
CellAllowCriteria
D11:D15List=$AY$4:$AY$14
E7List=TABLES!$U$4:$U$6
F11:F15List=TABLES!$U$8:$U$9
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Try changing formula to

Excel Formula:
=SUM((G17:H17)/0.9+SUM(I21,I23)
 
Upvote 0
Thanks @Sufiyan97. That didn't work; I still received the #VALUE! error if G17 & H17 were blank and wouldn't add any of the other cells, but gave me an idea to try this, which worked! Thanks again for the help! Much appreciated.
Excel Formula:
=IF(SUM(G17)/0.9+SUM(H17)/0.9+SUM(I21)+SUM(I23)
 
Upvote 0
Glad you sorted it and
Glad I could help at some extent.
 
Upvote 0
Thanks @Sufiyan97. That didn't work; I still received the #VALUE! error if G17 & H17 were blank and wouldn't add any of the other cells, but gave me an idea to try this, which worked! Thanks again for the help! Much appreciated.
Excel Formula:
=IF(SUM(G17)/0.9+SUM(H17)/0.9+SUM(I21)+SUM(I23)
Sounds like you have some non-numeric entries in there messing things up.
That is the only explanation why adding SUM in front of those single range values would make a difference.
 
Upvote 0
.. but gave me an idea to try this, which worked!
Excel Formula:
=IF(SUM(G17)/0.9+SUM(H17)/0.9+SUM(I21)+SUM(I23)
I don't think so since that isn't a valid formula as posted, so I have removed the 'Mark as solution'
Perhaps you meant just this?
Excel Formula:
=SUM(G17)/0.9+SUM(H17)/0.9+SUM(I21)+SUM(I23)

A shorter alternative would be
Excel Formula:
=(N(G17)+N(H17))/0.9+N(I21)+N(I23)
 
Upvote 0
Solution
Sorry @Peter_SSs. You are correct. I must have accidentally added the "IF" and copied prior. The formula I was using, which worked, didn't include that. Thanks for that catch and providing the alternate, shorter solution.
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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