Formulas for Dates problem

Francis85

New Member
Joined
Feb 26, 2014
Messages
8
Hi,

I'm working on a spread sheet that I'm getting stumped on.

In cell B2 I have the formula =Today() (which as I'm sure you know, picks up the current days date). The format is DD/MM/YYYY.

If this date is between 01/MM/YYYY and 08/MM/YYYY then I want it to display 6.25
If this date is between 09/MM/YYYY and 15/MM/YYYY then I want it to display 6.5
If this date is between 16/MM/YYYY and 22/MM/YYYY then I want it to display 6.75
If this date is between 23/MM/YYYY and 31/MM/YYYY then I want it to display 7

I'm having trouble writing the whole formula as I've never worked with dates and 'IF' statements before.

Many thanks in advance for your help.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Many thanks!

I've just been playing around with different formulas. I tried this one instead;

B2 =Today() returns 26/02/2014
C2 =day(B2) returns 26
D2 =(C2/30)+6 returns 6.867

I'm trying to break the month up to get an average for ordering stock, this does it a bit more precise than my original way of thinking. Although, just tried your method and works well too.

Thanks again
 
Upvote 0

Forum statistics

Threads
1,215,761
Messages
6,126,735
Members
449,333
Latest member
Adiadidas

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