![]() |
Why do I get correct answers to formula then #NAME for some no's
I have an Excel worksheet with six separate columns of numbers and several
rows with numbers in one, several or all of the columns plus a total column. I am using a formula to crosscheck the totals. The formula being used is =IF(SUM(S4:S22)=SUM(B23:Q23),SUM(S4:S22),value). All of the numbers down and across (both positive and negative totals) add to a correct total in cell S23. Suddenly, by adding a negative number (within a range of -45 to -244) the answer becomes #NAME. Why?? By adding any other numbers (positive or negative) the crosscheck answer is correct. I have never had this problem with an Excel spreadsheet previously. |
Why do I get correct answers to formula then #NAME for some no's
Is value a named range somewhere, or do you want this to appear as
text to alert you to the fact that the two totals are not the same? If the latter, then you need to enclose the word value within double quotes, like so: =IF(SUM(S4:S22)=SUM(B23:Q23),SUM(S4:S22),"value") Hope this helps. Pete On Apr 20, 4:54 am, James W. <James wrote: I have an Excel worksheet with six separate columns of numbers and several rows with numbers in one, several or all of the columns plus a total column. I am using a formula to crosscheck the totals. The formula being used is =IF(SUM(S4:S22)=SUM(B23:Q23),SUM(S4:S22),value). All of the numbers down and across (both positive and negative totals) add to a correct total in cell S23. Suddenly, by adding a negative number (within a range of -45 to -244) the answer becomes #NAME. Why?? By adding any other numbers (positive or negative) the crosscheck answer is correct. I have never had this problem with an Excel spreadsheet previously. |
All times are GMT +1. The time now is 10:26 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com