If a DATE in A1 changes on a daily basis, I need for the DATA to change rows pertaining just to that DATE.
So if I have a column of dates from 12/1/16 to 12/31/16 and I enter 12/3/16 into cell A1 I only want data in 12/3/16 to be updated.
When I enter a value in B12 it populates it in cell D2 or D3 or D4 and so on depending on what the date is.
You need to change the mechanism that "automatically enters the numbers" and add a condition that compares the date in A1 with the date in the current row.
More details about that can be provided if you update your question as suggested in the comments.
Related
I need to auto populate any two cells in Excel with the 16th of the previous month and the 15th of the current month based on the system date.
Example: Current month is January based on the system date.
So cell "A1" and "A2" need to be populated with 16-DEC-2018 and 15-JAN-2019.
You can just use excel formulas like Scott suggested. There's no reason to do this with VBA.
Give cell A1 the formula: =DATE(YEAR(TODAY()),MONTH(TODAY())-1,16)
Give cell A2 the formula: =DATE(YEAR(TODAY()),MONTH(TODAY()),15)
If you need the dates in that specific format, set the cells to have a custom format of dd-mmm-yyyy
I want to highlight Cell F4 if F4 is blank and E4 is not.
So in the scenario below I want the actual visit column to highlight if it is blank AND the 7 day due date is NOT blank. I am trying to have a visual alert of missed visits.
Entry Date 7 Day Due Date Actual Visit Date
12/18/18 12/24/18
12/01/18 12/07/18 12/7/18
Please select ColumnF and try a CF formula rule of:
=AND(F1="",E1<>"")
with formatting of your choice.
The condition format based on a formula:
applied to $C$2:$C$11
highlights a cell based on your condition.
So, I have this excel 2016 spreadsheet with half million rows in which D2 is equal to D3, D4 is equal to D5 and D6 is equal to D7 and so on. But in some instances like D12 and D13, those two dates are not equal. Can anybody let me know how to highlight those two values which one has the different date to each other? Any formula or something? Difficult to do one by one
enter image description here
If I am understanding you correctly, you wish to flag any rows where the charge effective end date is different between the Discount and the Monthly fee
Try this in a blank column on row 3, then drag it down to the end of your data:
=IF(AND($B2=$B3, $D2=$D3), "", False)
First, select cell E2, then go to Home > Conditional Formatting > New Rule > Format only cells that contain, and in the fields below, choose Cell Value, not equal to, =$D2, and pick the format you want to display. You can follow the pic below.
Then under Conditional Formatting Rules Manager, change the Applies to to =$E$2:$E$100 (remember to apply to any cell that you want to have this feature). Click Ok or Apply and you should see the results like below.
Try and let me know.
I have the following formula in my activity sheet in the date column
=IF(ISBLANK(A1),"",TODAY())
This is to automatically populate the cell with the current date if A1 is not empty, i have applied this formula to all the cells in column A. But everyday i open the sheet to add my activities the previous days date value automatically changes to the current date, Is there any way to lock the cells value from changing once the formula is applied for the first time or is there an alternate way
Copy the field and inset as value in to the same . This way, the formula gets replaced with the value and never changes.
Otherwise let the formula reference to a static field which has the date in it.
Assuming the formula is in B1:
With iterative calculation (options > formulas > check "enable iterative calculation") you can use this formula:
=IF(A1="","",IF(B1="",TODAY(),B1))
if anything is in A1 then B2 will show the actual date but if B1 alredy has a value, it shows the old one (open it up days later will still show the old date) but empty out A1 to reset and a new entry will show the actual date again (just switching the value wont work, you need to empty A1 to get the actual date)
I need to format a cell that is specified by another cell. Basically after many calculations, the cell AL1 contains a cell reference, in this case it is AD48. I want to format cell AD48 and fill it red. This cell reference can, and will change so tomorow it may be AD54. I would then want only cell AD54 to be filled red and not AD48 anymore.
So basically whatever cell is specified in AL1, I want to format that cell (in this case fill it red)
ALOT of googling and no answer. Any help much appreciated!
Select sheet (click triangle immediately to the left of ColumnA and immediatley above Row1), Home > Styles - Conditional Formatting, New Rule, Format only cells that contain, Cell Value equal to =$AL$1, Format, Fill, Red, OK, OK.
Edit following clarification of requirement:
Change to Use a formula to determine which cells to format and apply
=SUBSTITUTE(CELL("address",A1),"$","")=$AL$1
Edit to add image of part of file uploaded by OP and some CF clarification.
Edit OP has an answer that works but posted this as a link in a comment. There is a solution that does not require formulae in AH1:AJ4 now that AA3 contains =TODAY():
=OR(AND($C5=TEXT($AA$3,"mmmm"),C8=DAY($AA$3)),AND($C4=TEXT($AA$3,"mmmm"),C7=DAY($AA$3)))
in Format values where this formula is true: and Applies to =$C$7:$AG$125. (Now formats both day of week and date of month).
Edit. Attempt at clarification (that should have been provided before!)
Selecting C7 as the start point, the formula for conditional formatting checks whether A or B is true:
A] Both the month name (in C5) matches the current month (long form) of =TODAY() in AA3) and the cell immediately below (ie C8) matches the day in AA3,
Or
B] Both the month name (in C4 – that is merged with C5) matches the month and the current cell (C8) matches the day in AA3.
Either case triggers the conditional formatting – hence this is applied in pairs of vertically adjacent cells.
Since the spreadsheet is well laid out (each month 11 rows and Day1 always in ColumnC) this same formula can be applied throughout with the nature of conditional formatting taking care of adjusting the relative references to cells in ColumnC up to the specified limit of Row 125 and in Row7 (or 8) for columns up to the specified limit of AG.