Is there a way of getting the cell references in a formula change following a change in the content of a cell in the worksheet ?? Please see attached file.
Any help will be much appreciated
Is there a way of getting the cell references in a formula change following a change in the content of a cell in the worksheet ?? Please see attached file.
Any help will be much appreciated
Last edited by Michael6; 09-09-2009 at 05:46 AM.
I think you need to clarify in terms of whether or not the value in I8 is an any way tied to the data table - ie is January actually listed anywhere or are you simply saying that you interpret each "block" of data in your table to be associated with a month, ie first block is Jan, second block is Feb etc... your life would be a lot easier if Jan, Feb etc were listed alongside the transactions in your table.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
DonkeyOte, Thanks for your reply.
Actually, value in cell I8 is not tied up to the data table, and each block is associated with a month. When, say, March is entered in cell I8, the range in the formula should start at a different row from that when a different month is entered. But if that makes it difficult as you hinted, I wonder if I can do any modification to make it easier to arrive at a solution. I will be glad if you can give me a suggestion.
This new attachment represents the actual worksheet more closely.
Using your sample file:
Please Login or Register to view this content.
DonkeyOte, Thank you very much. Your formula works like magic to me. It solved the problem perfectly. But I am now encouraged to add one more question. Could you please give the formula to work out the average per week (for each item), in a column I want to add beside the SUM column. Each row in the range represents a week. To devide the SUM by the number of weeks (to get the average), I was deviding by [MAX(($A$8:$A$60=F8)*ROW($A$8:$A$60))-7), which has now to be modified accordingly.
If the SUM value is in G8 etc then perhaps:
Please Login or Register to view this content.
Thank you again. I appreciate your help.
The problem is now solved.
Regards
Michael
Given amount of repetitive calcs being performed (match of Month) I would suggest the following revisions (using your last sample file)Originally Posted by Michael6
*H4 provides the match of month number which is used consistently in latter calcs - better in XL to calc once, store & refer to the result via cell reference than repeatedly calc in each formula given the result is "constant" (ie does not change per calculation)Please Login or Register to view this content.
Thank you very much. I've just tried the new formulas and they work perfectly.
The problem is now definitely solved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks