+ Reply to Thread
Results 1 to 12 of 12

Fiddly question on auto-populating cells

  1. #1
    Registered User
    Join Date
    06-06-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    48

    Fiddly question on auto-populating cells

    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!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Fiddly question on auto-populating cells

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    06-06-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    48

    Re: Fiddly question on auto-populating cells

    Thanks for the quick reply. I've now attached two Excel files - the first one showing the position before the automation process, and the second one showing the position afterwards. These are based on the numbers in my original post. Cells B1 and B2 in worksheet 1 need to be automatically completed based on data in worksheet 2.

    Here, this produces two DIV/0 errors in cells B1 and B2 but it doesn't matter - you can see what entries have gone into these cells in the 'After' file.

    Thanks for the help!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Fiddly question on auto-populating cells

    Your requirement is not understood

    which range are you trying to get values for?

    Both Sheets 1 and 2 have data in column B

  5. #5
    Forum Contributor
    Join Date
    05-06-2015
    Location
    Sri Lanka
    MS-Off Ver
    2016, 2007
    Posts
    135

    Re: Fiddly question on auto-populating cells

    if you need to refer another worksheet type worksheet name and ! mark

    e.g. if you have sheet named w1 and w2, and if you are in w1, say in cell b1 if you type =AVERAGE('w2'!B1:B5) it gives avg of b1 to b5 in wroksheet 2.

    see the file
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-06-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    48

    Re: Fiddly question on auto-populating cells

    Quote Originally Posted by Dineth View Post
    if you need to refer another worksheet type worksheet name and ! mark

    e.g. if you have sheet named w1 and w2, and if you are in w1, say in cell b1 if you type =AVERAGE('w2'!B1:B5) it gives avg of b1 to b5 in wroksheet 2.

    see the file
    Thanks for the reply but what I'm trying to do is harder than this.

    Your 'After' spreadsheet at Worksheet 1, cell B2, is averaging B1 to B5 of Worksheet 2. It needs to be doing what my 'After' spreadsheet is doing, i.e. averaging cells B3,B31,B29,B8,B17 of Worksheet 1.

    The difficulty is finding a way to auto-populate cell B2 of Worksheet 1 using the 'raw' data from Worksheet 2. In other words, take the 'raw' numbers 3, 31, 29, 8 and 17 from Worksheet 2 and use them to generate a cell in Worksheet 1 which averages B3, B31, B29, B8 and B17 from Worksheet 1.

    My cells B1 and B2 of Worksheet 1 of the 'after' spreadsheet are doing the right thing but only because I typed them in manually, I need these cells to appear automatically based on the data in Worksheet 2.
    Last edited by BristolJGM; 06-06-2015 at 01:25 PM.

  7. #7
    Registered User
    Join Date
    06-06-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    48

    Re: Fiddly question on auto-populating cells

    Quote Originally Posted by mehmetcik View Post
    Your requirement is not understood

    which range are you trying to get values for?

    Both Sheets 1 and 2 have data in column B
    Essentially, make cells B1 and B2 of Worksheet 1 in the 'after' spreadsheet appear automatically. The only reason these cells are there in the 'after' worksheet is that I typed them in manually. I need something to auto-generate the same cells (or cells with the same effect) using the data in Worksheet 2.

    The difficulty in this is translating the 'raw' numbers in Worksheet 2 to auto-populate these two cells in Worksheet 1.

    I'm not sure if there's a way of doing this at all...

  8. #8
    Registered User
    Join Date
    06-06-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    48

    Re: Fiddly question on auto-populating cells

    Thanks for the replies, by the way - sorry my explanation isn't very clear...

  9. #9
    Forum Contributor
    Join Date
    05-06-2015
    Location
    Sri Lanka
    MS-Off Ver
    2016, 2007
    Posts
    135

    Re: Fiddly question on auto-populating cells

    I think this can be done, what we need is
    formula to convert your numbers in to cell addresses e.g lets say you have 5 in second worksheet b1 cell, in c1 we can write ="B"&B1 it will give the cell range. if u need add a comma s well.
    so c col is your ranges.

    in worksheet 1, again write a formula something like ="=average("&....
    dotted line for continue the formula to get the ref from c col in wrksht 2.

    let me try a file.

  10. #10
    Registered User
    Join Date
    06-06-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    48

    Re: Fiddly question on auto-populating cells

    Quote Originally Posted by Dineth View Post
    I think this can be done, what we need is
    formula to convert your numbers in to cell addresses e.g lets say you have 5 in second worksheet b1 cell, in c1 we can write ="B"&B1 it will give the cell range. if u need add a comma s well.
    so c col is your ranges.

    in worksheet 1, again write a formula something like ="=average("&....
    dotted line for continue the formula to get the ref from c col in wrksht 2.

    let me try a file.
    Thanks. I finally managed to ask the question correctly...

  11. #11
    Registered User
    Join Date
    06-06-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    48

    Re: Fiddly question on auto-populating cells

    Did anyone manage to figure this one out? (Or to conclude that it's impossible...)

  12. #12
    Registered User
    Join Date
    06-06-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    48

    Re: Fiddly question on auto-populating cells

    I think I've (half) figured this out for myself... I think the INDIRECT function can be used to do it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New here and need help with auto populating cells
    By fstefanelli in forum Excel General
    Replies: 17
    Last Post: 01-05-2014, 09:20 PM
  2. [SOLVED] re: auto-populating cell question
    By 4GONERS in forum Excel General
    Replies: 3
    Last Post: 07-05-2013, 10:03 PM
  3. Excel 2007 : Auto Populating cells
    By Gary Evans in forum Excel General
    Replies: 1
    Last Post: 11-23-2011, 04:17 AM
  4. Excel 2007 : Question about auto populating
    By toneloc1148 in forum Excel General
    Replies: 1
    Last Post: 08-16-2011, 11:11 AM
  5. auto populating cells
    By hnnn in forum Excel General
    Replies: 1
    Last Post: 11-05-2010, 11:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1