|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Conditional Formatting that highlights cells when there was a change in another column
Hi, my problem is related to Lolla70's previous post that was moved to the programming section. In the profiling of households, the members (Column A) are categorized into groups (Column D) according to their age (Column C). I need help in:
1. A conditional formatting formula that will highlight the name of a member whose group status (Column D) was changed in the last quarter or 90 days. The profile date is entered in $B11. 2. Is there a formula that will calculate the age group (Column D) without Column C? Thank you. |
#2
|
||||
|
||||
Quote:
Perhaps you want to compare the profile date with 90 days ago?, or the profile date with 90 days before the profile date? So I can't give you a defintive answer, but I can get you started. One way is to calculate the classification code twice, once for one date and once for the other, compare the result. If they're the same, no change, if they're different then of course it has changed between those 2 dates. Conditional formatting wants to see a TRUE/FALSE result for it to decide whether to highlight or not. I've added a column to your lower table which uses two dates: your ProfileDate and a new ComparisonDate (cell D11). So you can experiment adjusting the two dates and watching column E. TRUE means it's changed, FALSE not. The formula in that column can ultimately be the basis of the formula you end up using in conditional formatting - I wouldn't expect that you will need to have column E at all ultimately. Quote:
=VLOOKUP(DATEDIF([@Birthday],ProfileDate,"d"),tAgeGroup,4) |
#3
|
||||
|
||||
Thank you p45cal. The profile or census is done every end of quarter of the calenday year, so the profile date is March 31, 2019 while the comparison date is the previous end of quarter, that is Dec 31, 2018. I'm sorry for not providing the full details, otherwise so much guessing from good Samaritans like you would have been avoided. Taking cues from your formula, I came up with the following conditional formula, and it works fine.
=(VLOOKUP(DATEDIF($b14,$D12,"d"),$A$2:$D$10,4))<>$ D14 Any idea why range names do not work in conditional formatting? Thanks also for the formula below, dispensing with the extra column computing the age in days and saving precious file space. Quote:
|
#4
|
||||
|
||||
are you sure $D12 in the cf formula shouldn't be $D$12?
|
#5
|
||||
|
||||
Right, it should be $D$12. Again, thank you.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to highlight the cells using conditional formatting? | LearnerExcel | Excel | 1 | 01-01-2019 01:43 AM |
How to fill a cell at row and column intersection with conditional Formatting | Iraj | Excel | 10 | 12-02-2017 09:54 AM |
How to highlight cells using Vlookup / conditional formatting | mikehk | Excel | 2 | 09-18-2017 07:30 PM |
Conditional Formatting a column | Washbue1 | Excel | 3 | 01-27-2017 01:11 PM |
Conditional Formatting for Cells Containing Formula | Gillian623 | Excel | 1 | 12-09-2016 11:03 PM |