Problems with If Date function

Wolfgang17

Board Regular
Joined
Nov 8, 2010
Messages
60
I'm trying to change the value of a cell according to the date in another cell. the date is formatted ddd mmm/dd/yyyy.
Iv'e tried many things, so far I have this that will return a value with out error, however it's the same value for regardless of change of date.
=IF("Week_Days">=DATE(2013,10,1),Data!B3,Data!B2)

I think the problem is with the Date format.

Any help would be appreciated.

Thanks
 
Hi Peter,

The spreadsheet is a time sheet. The dates (Week_Days) are days of the the week that I fill in through a macro at the beginning of the Payroll year, the start of which usually never falls on the same day, causing the date change between Sept 30 and Oct 1st to fall on different Cell ranges, and sometimes a different sheet. This year those dates fall on sheet 21, Cell "A30" (Sept 30th) and "A33" (Oct 1st). There is a annually Pay Rate Change on Oct 1st. The prior rate,(before Sept 30th=Data!B2, after Oct 1st +Data!B3.

I tried your suggestion
. It will insert the value of Data!B2 into "R7" on all sheets . However, it will not change the value of "R7" to Data!B3 after October 1st, on sheet 21 and remaining 5 sheets. It remains the value of Data!B2.

Thanks
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,216,038
Messages
6,128,443
Members
449,453
Latest member
jayeshw

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