Retain final figure as month changes.

IanB76

New Member
Joined
Sep 7, 2017
Messages
10
Hi,

I have a formula that reads from a cell based on the month we are in. the cell it reads from is a constantly changing figure throughout the course of the month.


=IF(C3=MONTH(TODAY()), $C$16)

The formula works perfectly fine, however, the problem lies when we move to the next month, the figures will become false for September.

I need to somehow retain the last figure of the month so the chart that runs off this doesn't keep zeroing itself.


<colgroup><col><col><col span="10"><col></colgroup><tbody></tbody>
910111212345678
SeptemberOctoberNovemberDecemberJanuaryFebruaryMarchAprilMayJuneJulyAugust
0FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
7FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE
0FALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSEFALSE

<colgroup><col><col span="10"><col></colgroup><tbody>
</tbody>


I keep ending up with circular references or just a broken formula in various different ways.


Any help is greatly appreciated :)
 
For the current year you could do something like this:

Rich (BB code):
=SUMIFS(Required!Q11:Q842, Required!E11:E842,">=" & DATE(YEAR(TODAY()),9,1), Required!E11:E842,"<" & DATE(YEAR(TODAY()),10,1),Required!I11:I842,"<>",Required!N11:N842,"Complete", Required!P11:P842,"<>" )+($F$16)

i.e. greater than or equal to the 1st September and less that the 1st October.





That seems to have got it .. Brilliant Thanks FormR :)
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Glad to help, welcome to the forum BTW :)



Thankyou very much, is good to be a part of it :)





I have had to cell ref: the date due to working Aug to Aug, i am going to hit a year shift come Jan, final formula below for if anyone need the reference.


=SUMIFS(Required!$Q$11:$Q$842, Required!$E$11:$E$842,">=" &DATE(D2,9,1), Required!$E$11:$E$842,"<" & DATE(D2,10,1), Required!$I$11:$I$842,"<>",Required!$N$11:$N$842,"Complete", Required!$P$11:$P$842,"<>" )+($F$16)




Cheers
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,300
Members
449,095
Latest member
Chestertim

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