This is a very complicated problem (or at least it is to me).
I would like to find the average of some data that is listed horizontally, based on a vlookup up. I've screenshotted the data:
Capture.JPG
Help!
This is a very complicated problem (or at least it is to me).
I would like to find the average of some data that is listed horizontally, based on a vlookup up. I've screenshotted the data:
Capture.JPG
Help!
Workbook not included, but I'd use MATCH (instead of VLOOKUP) to get the 'row' of the data, and then either INDEX or OFFSET. to get the correct range for your AVERAGE.
Pauley
--------
If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).
Thanks Pauley! The problem is that the data columns differ per line. I tried attaching an image to show what I mean in the original post. Let me know if you can see what I mean.
Thanks!
Capture.JPG
Last edited by chines1025; 07-15-2019 at 04:21 PM.
Hello chines1025. Welcome to the forum.
Please upload a representative sample Excel workbook directly to this forum.
Here's how:
To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),
be sure to desensitize the data
- click “Go Advanced” (next to Post Quick Reply – bottom right),
- scroll down until you see “Manage Attachments”, click that,
- click “Browse”.
- select your file(s)
- click “Upload”
- click “Close window”
- click “Submit Reply”
The file name will appear at the bottom of your reply.
Dave
I can see your pic, but don't understand that the data columns differ by line. Do you mean that, for example, the row you have the box around you want to average from WK43 to WK03, and then the row underneath is WK43 to WK02, and the next is WK43 to WK04? AVERAGE will ignore blank cells in its calculation, so you could just have it average out from WK43 to WKxx. The differing sizes shouldn't matter.
Sorry I'm not being clear. This is kind of hard to explain, but essentially I'm trying to find the average of just the data shown for the reference number highlighted. But for some of the other instances that data might shift a row or two.
Usually, I would use the =AVERAGE() formula to average an item selling (the item is the ACADIA LOGO TEE) from Wkx to Wkxx based on a week count. For example, 12 weeks. However, as you can imagine, if I'm doing this for 30 different items, typing in that AVERAGE formula can be tedious as each item doesn't sell during the same weeks. So I've been having to adjust the weeks per line.
What I'd like to do is just be able to enter the style name on a cover page and have the Average pull in automatically based on a CONCATENATE of the style name, color, and the other row details just pulling 12 weeks of visible data for that style.
Does that help? I'm sorry if it's a mess. I've tried the MATCH but I still need to add AVERAGE and COUNT 12 or something to make it specific.
Thanks for your patience and help!
For example, 12 weeks. However, as you can imagine, if I'm doing this for 30 different items, typing in that AVERAGE formula can be tedious as each item doesn't sell during the same weeks. So I've been having to adjust the weeks per line.
What I'd like to do is just be able to enter the style name on a cover page and have the Average pull in automatically based on a CONCATENATE of the style name, color, and the other row details just pulling 12 weeks of visible data for that style.
Yes imagining all that is tedious.
So please upload another workbook with those details laid out the way you envision. It will give us something concrete to work with.
Thank you.
Thank you! I attached a simple version of what I'm working on. The cover tab shows how I'd like the file to look with some notes for reference. The data tab shows exactly how the report is pulled from our data system. I highlighted the "APS" row that shows the data I need.
Thank you for that upload. That is much clearer.
To return the concatenated row headers, styles and colors from 'DATA' for all the code "APS" (or what ever is designated in D3) find entered in A4 filled down and across column C until you get blanksThen to return the averages in D4 filled down until you get blanks.Formula:Please Login or Register to view this content.Formula:Please Login or Register to view this content.
Omg this worked! Thank you so so much! Quick question, is there a way to only use 12 cells of data in the APS row for the average, skipping the first cell of data versus averaging the whole row? This isn't completely necessary but I just wanted to check.
So for example, this is a full row of selling:
0.54 1.13 1.61 2.54 2.45 1.8 1.98 2.81 1.7 1.13 1.02 0.95 1.08 0.98 0.95 0.63 1.19 1 6.76 2.34
But I only want to average what's in bold red and underlined. Usually the count is 12 but I would like to maybe add a count column that this formula you created looks to to know how many cells to use for the average. I added the column for this and reattached.
Thanks again!
Short answer is "Yes".Quick question, is there a way to only use 12 cells of data in the APS row for the average, skipping the first cell of data versus averaging the whole row?
Long answer is "It depends ... (which 12 values; always the same 12 values; always contiguous 12 values ...)"
Hi
It wouldn't always be 12, sometimes it would be 8 or 10. So I added a column that says how many to count in the average. It would be 12 consecutive cells starting after the first visible data cell.
Is there a function that I could add to the formula you created? I tried "LOOKUP" and "COUNT" but obviously that was foolish haha.
Thanks for your help!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks