Hi everyone
I’ve set out my question below – any help gratefully received. I’m quite new to Excel – I think it’s quite a tricky question and I’ve tried to ask it in as clear a way as possible. It may be that what I’ve asked simply isn’t possible at all. Maybe with a macro or something.
- I have an Excel spreadsheet with two worksheets.
- Worksheet 1 has numbers 1-100 in column A (i.e. cell A1 is 1, A2 is 2, and so on)
- Column B has some different values, the detail of which is explained below.
- Worksheet 2 has number 1 in cell A1 and then in cells B1-5 it has a range of different numbers between 1 and 100. Let’s say that it has 3, 31, 29, 8, 17. I will be typing in these numbers manually.
- Then in cell A6 it will have the number 2, and 5 more different numbers in cells B6-10, and so on, cell A11 the number 3 and 5 more different numbers in cells B11-15, etc.
- Now we come onto cell B1 in worksheet 1 – this is the one I need help with.
- What I would like this cell to do is easiest to explain with an illustration. I would like it to say =AVERAGE(B3,B31,B29,B8,B17). I’d like it to auto-populate the numbers to average out based on the numbers in column 2 of worksheet 2 (which I’ve typed in manually).
- I don’t know how make cell B1 of worksheet 1 auto-populate based on the numbers from B1-B5 in worksheet 2 (or if it’s even possible).
- I would like this to continue for the remaining numbers. Let’s suppose for example that in cells B6-10 of worksheet 2, we have the values 34, 58,23,6,87. I would like cell B2 on tab 1 to auto-populate (based on the info in cells B6-10 of worksheet 2) with =AVERAGE (B34,B58,B23,B6,B7)
The reason for doing this is that I am prepared to manually type in the values in worksheet 2 but would like Excel to use these values to auto-populate column B in worksheet 1 - to cut down the time spent on data entry and reduce the risk of data entry error.
Thanks!
Bookmarks