Data totals corupted by formula

help needed yes please

Board Regular
Joined
Apr 19, 2018
Messages
63
Office Version
  1. 2010
Column A B
A47 2111921 ColumnB:162
A48 2112093 ColumnB 156
.................... B49-2112093 'B'has moving formula =Sum(A47-A46) (A48-A47) and so on. column 'B' is used toprovide sequential total elsewhere.
How can I stop this -2112093 figure (Which of course changes with every newinput into column 'A') From corrupting the periodical data collected elsewhere?Sorry if this is not right. Never done this before and cant find a way to sendyou jpg of my work page. Only found a url input. Pulling hair out here. Tafrank:confused:
<o:p></o:p>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Welcome to the forum.

You can just test if column A is empty:

=IF(A47="","",A47-A46)
 
Upvote 0
Thanks Rory, it is precisely because 'A' is empty that the figure is carried over into 'B' using the current formula. I tried your suggestion and excel would not accept it. I have tried the A1="", bit before as part of an IF and excel will not accept it as code for recognizing it as an empty cell. Been on this for days and days, stay with me please Rory. Thanks Frank
 
Upvote 0
The only way that formula would be invalid is if you use different separators in your formulas. Does this work for you?

=IF(A47="";"";A47-A46)
 
Upvote 0
Hi Rory, did as suggested, no go though. The cell E48 has number 172 showing. E49 has 2112093 I clear this cell and enter =IF(D49="";"";D49-D48) this brings popup 'Error' bottom left corner of screen shows 'Edit' cant get away from cell while that formula still in it. I am trying to get a '0' in column E when the cell beside it in D is empty. Not there yet but thank you very much for trying to help me out, having some help is wonderful, thank you, frank
2111765162
2111921156
2112093172
2112093
<colgroup><col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <tbody>
</tbody>
 
Upvote 0
And what happens with

=IF(D49="","",D49-D48)

in that cell?
 
Upvote 0
Frank, Hi Rory
2111765 162
2111921156
2112093172
<colgroup><col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <tbody> </tbody>
E48 has number 172 in it which is generated with
=IF(D48="","",D48-D47) Gives right answer in this cell of E48. placing same formula in cells below E48 gave this result
2112093172
21130502,113,050
-2,113,050
<colgroup><col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <tbody> </tbody>
E48 172, E49 blank, E50 same as D50, E51 returned same answer even though D51 was empty. (Worked on giving right answer of 171 (E48) yet did not when it gave answer 2113050 (E50) perhaps because D49 was empty? I tried all combinations on a different computer and get same results so I think my excel program is ok. Tried various cells same result. Tried copy and paste formula direct from this page , made no difference. Trying seems to be the order of the day Rory, thank God we are alive eh? thanks, F
 
Upvote 0
Frank, Hi Rory back to bubble and strife. Numerals in Column A. Formula results in Column B whichhas =IF(A4="","",A4-A3) It Works NOW! As seen in mock upshown when applied to a blank cell returns ‘Blank’ cell in ‘E’ However if a day’sentry is absent in A4 following results go wonky. I have found that if I copy A3into A4 then B results come good. So I am left with two things? Cant auto totalcolumn B if gaps in listing. Need it to place a ‘0’ in B. The other is how tomake it work the same as B1 to B3 and pick up again after a gap in A column.Rory I mucked on earlier tries because in my mock up I had gaps all over theplace which I am pretty sure caused me lots of grief. Sorry, my bad, I am sorryyour kindness has been so ill used by my stupidity!@#@!@# (I don’t swear butyou get the drift?) Sorry mate. I have now I think made it easier tounderstand?
2112210<o:p></o:p>
2112230<o:p></o:p>
20<o:p></o:p>
2112245<o:p></o:p>
15<o:p></o:p>
2112264<o:p></o:p>
2112264<o:p></o:p>
<tbody> </tbody>
<o:p></o:p>
 
Upvote 0
frank to Rory. Yes somehow after renewing page and trying =IF(D49="","",D49-D48) it works now. I think I had to many empty cells scattered in my mock up page and confused excel. Anyway ITS ALL GOOD Thank you for your patience and help really appreciated it. Ta F
 
Upvote 0

Forum statistics

Threads
1,215,357
Messages
6,124,483
Members
449,165
Latest member
ChipDude83

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