+ Reply to Thread
Results 1 to 8 of 8

Autofill referencing non-adjacent cells

  1. #1
    Registered User
    Join Date
    10-26-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    8

    Autofill referencing non-adjacent cells

    Hi,

    I need to calculate the volume of a frustum (cone) across a dataset given by:
    wefds.png
    The caveat is that I need to reference every nth cell and SUM all the values in one cell, less the tedious manual input.

    For example, referencing every 3rd cell (n=3).

    Please Login or Register  to view this content.
    I would need to do this for n=5, 10, 30 etc. and would like to know how to modify the formula accordingly.

    Appreciate any help!
    Last edited by Glenn Kennedy; 08-12-2019 at 01:00 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Autofill referencing non-adjacent cells

    Not saying I'll answer this but

    Please Login or Register  to view this content.
    but why A11 and A1 ?
    Shouldn't they both be A10 ?

    Also the + in the SUM should be commas.

    SUM(1,2,3) not SUM(1+2+3)
    SUM(1+2+3) is just 1+2+3

    like

    Please Login or Register  to view this content.
    Last edited by Special-K; 08-12-2019 at 12:12 PM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    10-26-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    8

    Re: Autofill referencing non-adjacent cells

    Quote Originally Posted by Special-K View Post
    Not saying I'll answer this but

    Please Login or Register  to view this content.
    but why A11 and A1 ?
    Shouldn't they both be A10 ?
    Yes, I had made an error on my part. I have edited my original post.

    Appreciate your input.
    Last edited by kandywrks; 08-12-2019 at 12:37 PM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Autofill referencing non-adjacent cells

    Please amend your profile to show where you are in the world. Solutions often require regional settings to be taken into account. KR - South Korea??

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    10-26-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    8

    Re: Autofill referencing non-adjacent cells

    Hi Glenn,

    Amended my profile and attached the file as you have advised. The sample consists of 20 rows, the real data is approximately 300 rows.
    Thank you.
    Attached Files Attached Files
    Last edited by AliGW; 08-12-2019 at 01:05 PM. Reason: Please don't quote unnecessarily!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Autofill referencing non-adjacent cells

    Hi. This is the formula that you need (hopefully!!):

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It is an array formula. Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    Please note that in part of the formula the ranges are staggered slightly (shown in red.

    On the right of the screen is a manual calculaton to show that the formula is producing the correct paramters.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-26-2014
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    8

    Re: Autofill referencing non-adjacent cells

    Hi Glenn,

    Thank you for the solution, it works perfectly. Did not expect the formula to be so comprehensive!

    All the best.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Autofill referencing non-adjacent cells

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Referencing Cells to correspond with their rows for autofill
    By NINmh in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 03-12-2015, 06:33 PM
  2. Replies: 4
    Last Post: 01-12-2015, 11:41 AM
  3. [SOLVED] Autofill non adjacent cells
    By juriemagic in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2014, 06:33 AM
  4. [SOLVED] Help Please!!! Autofill with 2 Work Sheets with non Adjacent Cells
    By HomerTECH in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2013, 10:59 AM
  5. [SOLVED] Referencing non-adjacent cells for a list
    By Tyranicas in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 06-18-2012, 03:28 PM
  6. Pseudo HLOOKUP to Autofill Adjacent Cells Dynamically
    By harozi2 in forum Excel General
    Replies: 1
    Last Post: 05-18-2012, 10:17 AM
  7. Replies: 1
    Last Post: 06-30-2005, 05:05 PM

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