I normaly have the formula =a1/a2-1 and the next month ill manually change the reference cells. How can i auto update this formula based on current month? Attached is a sample sheet. I need to solve for column N.
I normaly have the formula =a1/a2-1 and the next month ill manually change the reference cells. How can i auto update this formula based on current month? Attached is a sample sheet. I need to solve for column N.
Are you still using Excel 2010? If not, please update your forum profile.
Maybe this:
=INDEX($B$3:$L$3,MATCH(TODAY(),$B$2:$L$2,1))/INDEX($B$3:$L$3,MATCH(EDATE(TODAY(),-1),$B$2:$L$2,1))-1
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Almost seems to do the trick but i need to back up one month so it would do difference between August and september. Is there a way to also maybe use a lookup cell for the months so maybe it doesnt change if say I open the file on the 1st of the month and new data hasnt been filled in yet. Thanks for your help.
Last edited by AliGW; 10-07-2020 at 08:43 AM. Reason: PLEASE don't quote unnecessarily!
Try this approach
Formula:Please Login or Register to view this content.
It search the last two results and perform the operation.
I see what you did but this one breaks if cells are not prefilled with 0 for the lookup.
Last edited by AliGW; 10-07-2020 at 09:43 AM. Reason: PLEASE don't quote unnecessarily!
People can only work with the data you provide. If you show data with the 0 populated and don't tell us that it might not be there, don't be surprised if the suggested solution fails!
Administrative Note:
Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!
For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.
This solve the issue.
Formula:Please Login or Register to view this content.
This works for numbers and while it wasnt in my example can this be modified to handle percentages in addition to numbers? i.e. the % change between 8% and 9%. I will try to be more specific next time thanks again.
=INDEX(B3:L3,MATCH(0,INDEX(B3:L3+0,0),0)-1)/INDEX(B3:L3,MATCH(0,INDEX(B3:L3+0,0),0)-2)-1
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks