Date calculation question

jared511

Board Regular
Joined
Jul 28, 2009
Messages
192
Hello,

I have a date field in one of my cells that shows March 3, 2011.


I was wondering how I can get one sell to reflect the number 2 since 2 days have passed in march. And another cell to reflect the number 29, since their are 29 days left in March. Any help would be greatly appreciated.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Ok so here is the problem.

The date field shows "March 03, 2011 MTD". This formula is in that cell
=CONCATENATE(TEXT(Data!C2,"mmmm dd, yyyy")," MTD")

Is there anyway I can create a formula to back out the MTD part? I tried doing a left formula backing out the characters besides MTD, but that didn't help.


Thanks,
Jared
 
Upvote 0
So your original date is in Data!C2....in which case it's easier to just reference that date directly, i.e.

=DAY(Data!C2)-1

and

=EOMONTH(Data!C2,0)-Data!C2+1

Format the cells with those formulas as "general"
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,242
Members
452,898
Latest member
Capolavoro009

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