Polishkitty
New Member
- Joined
- Jan 16, 2014
- Messages
- 1
Hi,
I have an Excel worksheet that has one column (e.g. B2) that contains the date. I also have 12 columns to the right that show January (Q4), Februrary(P4), etc. Under those dates there are numbers fo reach month (Q5 has January value, P5 has February value).
What I am trying to do is this: Based on the month in B2 or current month, I want to be able to compare the current month value (P5) to last month's value (Q5) and show an arrow in another cell that displays to the the right if values are the same , down if current month is lower than previous month and up arrow if current month is higher that previous month.
Now I was able to get the formula to work for February so that it compares february (current month) to January (previous month) and returns an arrow. What I need is a way to have this formula compare the next month and previous month when cell B2 is the new month, e.g. March. So if I type 3/1/14 in B2, the formula would know to compare S5 (March value) to R5 (February value) and provide the correct arrow. Here is the formula for one month: =IF($B$2=$Q$4,IF(Q7=P7,RIGHTARROW,IF(Q7<P7,DOWNARROW,UPARROW))).
Thanks.
Polishkitty
I have an Excel worksheet that has one column (e.g. B2) that contains the date. I also have 12 columns to the right that show January (Q4), Februrary(P4), etc. Under those dates there are numbers fo reach month (Q5 has January value, P5 has February value).
What I am trying to do is this: Based on the month in B2 or current month, I want to be able to compare the current month value (P5) to last month's value (Q5) and show an arrow in another cell that displays to the the right if values are the same , down if current month is lower than previous month and up arrow if current month is higher that previous month.
Now I was able to get the formula to work for February so that it compares february (current month) to January (previous month) and returns an arrow. What I need is a way to have this formula compare the next month and previous month when cell B2 is the new month, e.g. March. So if I type 3/1/14 in B2, the formula would know to compare S5 (March value) to R5 (February value) and provide the correct arrow. Here is the formula for one month: =IF($B$2=$Q$4,IF(Q7=P7,RIGHTARROW,IF(Q7<P7,DOWNARROW,UPARROW))).
Thanks.
Polishkitty