Hi
I have a formula in a excel sheet that changes the date as it will not change using any other methods.
The issue im having is that it is amending some dates that I do not want to amend. I have noticed that the cells that need amending the date is on the right hand side. Is there anyway I can run the formula I have but only amend the cells that are on the right hand side.
Formula is =IF(AND(DAY(C525)<=12,MONTH(C525)<=12),DATE(YEAR(C525),DAY(C525),MONTH(C525)),C525).
see screen shot on what mean regarding right hand side. Dont know it not showing on the picture but in my workbook line 523 the date is on the left next to the number and I DONT need that amending but the other lines are next to missing from station and there I DO need amending.
I have a formula in a excel sheet that changes the date as it will not change using any other methods.
The issue im having is that it is amending some dates that I do not want to amend. I have noticed that the cells that need amending the date is on the right hand side. Is there anyway I can run the formula I have but only amend the cells that are on the right hand side.
Formula is =IF(AND(DAY(C525)<=12,MONTH(C525)<=12),DATE(YEAR(C525),DAY(C525),MONTH(C525)),C525).
see screen shot on what mean regarding right hand side. Dont know it not showing on the picture but in my workbook line 523 the date is on the left next to the number and I DONT need that amending but the other lines are next to missing from station and there I DO need amending.
missing shifts .xlsm | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
523 | 2491 | 216 | 25/07/2020 | £0.00 | MISSING FROM STN | 25/07/2020 | ||
524 | 2492 | 163 | 07/07/2020 | £24.45 | MISSING FROM STN | 07/07/2020 | ||
525 | 2492 | 163 | 07/07/2020 | £64.00 | MISSING FROM STN | 07/07/2020 | ||
526 | 2492 | 163 | 07/08/2020 | £2.20 | MISSING FROM STN | 08/07/2020 | ||
527 | 2492 | 163 | 07/08/2020 | £5.70 | MISSING FROM STN | 08/07/2020 | ||
Sheet3 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F523:F527 | F523 | =IF(AND(DAY(C523)<=12,MONTH(C523)<=12),DATE(YEAR(C523),DAY(C523),MONTH(C523)),C523) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
F523:F543 | Expression | =F523<>C523 | text | NO |