Return Year from =Now()

RickM

Board Regular
Joined
Dec 5, 2007
Messages
84
I am trying to return in another cell the year only. I am using that in another formula. What would the formula be for:
A1 =Now()
I want it to be 2011 in B1
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
=year(a1) and format as Number
 
Upvote 0
Thanks. I thought that was what I wanted but I really need cell B1 to be 1/1/2011 from =Now(). Therefore it will change to 1/1/2012 next year, etc..... IS there a better way to do this?
 
Upvote 0
Thanks. I thought that was what I wanted but I really need cell B1 to be 1/1/2011 from =Now(). Therefore it will change to 1/1/2012 next year, etc..... IS there a better way to do this?

Something like...

=DATE(YEAR(TODAY()),1,1)
 
Upvote 0
Thanks. I thought that was what I wanted but I really need cell B1 to be 1/1/2011 from =Now(). Therefore it will change to 1/1/2012 next year, etc..... IS there a better way to do this?
Try this...

If cell A1 contains the formula: =NOW()...

=DATE(YEAR(A1),1,1)

Or, just put it directly in one formula:

=DATE(YEAR(NOW()),1,1)
 
Upvote 0
If I put it directly into the formula
=SUMIFS(E$3:E$30000,$D$3:$D$30000,$Z3,$B$3:$B$30000,">="&$Z$2)
where Z2 is the date.
What would I replace ">="&$Z$2 with.
 
Upvote 0
If I put it directly into the formula
=SUMIFS(E$3:E$30000,$D$3:$D$30000,$Z3,$B$3:$B$30000,">="&$Z$2)
where Z2 is the date.
What would I replace ">="&$Z$2 with.
Well, if you want to use the reference in that formula then I would just put the date formula in another cell and then refer to that cell as it looks like you're doing now. I like to put as many of the criteria in cells as I can.

Here it is all in one formula:

=SUMIFS(E$3:E$30000,$D$3:$D$30000,$Z3,$B$3:$B$30000,">="&DATE(YEAR(NOW()),1,1))
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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