Hi Gurus,
I need some quick help with a formula. I am trying to compare Product prices between few months, where I need to highlight if the price changed from previous month(s). I pasted few scenarios below:
Current month is 202308
Product A - It is exactly the same for both months - so no Query
Product B - It increased by 1 so I have to highlight it to be queried
Product C - There is 2 previous months for comparison. and it is different - so need to be queried
Product D - Price decreased by 1 - need to be queried.
What is the best way to achieve the above? I tried my hand writing a formula and didn't get it to work as expected. I attached the sample excel file with the same data.
Thanks for your help in advance.
Cheers,
Ravi.
I need some quick help with a formula. I am trying to compare Product prices between few months, where I need to highlight if the price changed from previous month(s). I pasted few scenarios below:
Current month is 202308
Product A - It is exactly the same for both months - so no Query
Product B - It increased by 1 so I have to highlight it to be queried
Product C - There is 2 previous months for comparison. and it is different - so need to be queried
Product D - Price decreased by 1 - need to be queried.
Product | Price | YearMonth | Query |
Product A | 200 | 202307 | |
Product A | 200 | 202308 | |
Product B | 100 | 202307 | |
Product B | 101 | 202308 | Query |
Product C | 500 | 202306 | |
Product C | 449 | 202307 | |
Product C | 501 | 202308 | Query |
Product D | 800 | 202307 | |
Product D | 799 | 202308 | Query |
What is the best way to achieve the above? I tried my hand writing a formula and didn't get it to work as expected. I attached the sample excel file with the same data.
Thanks for your help in advance.
Cheers,
Ravi.