+ Reply to Thread
Results 1 to 11 of 11

References that are absolute within a group but that change from one group to another

  1. #1
    Registered User
    Join Date
    10-16-2017
    Location
    Charlotte
    MS-Off Ver
    2016
    Posts
    31

    References that are absolute within a group but that change from one group to another

    I understand that the way to have, for instance, A1 as an absolute reference is to represent it as $A$1, and if I wanted to only have its column absolute I would represent it as $A1, while if I wanted only its row absolute I would represent it as A$1. I was wondering how I would represent it if I wanted to have it as an absolute reference within a certain group of cells but have the reference change from one group to another assuming the group isn't a row or column. One way would be to manually change it, and this can be done if there's only a few groups to work with, but for many groups manually changing it becomes extremely impractical and greatly increases the chances of a careless mistake along the way.

    How can I create references that are absolute within a certain group of cells but not between groups? I have attached a sheet with an example of what I'm talking about.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: References that are absolute within a group but that change from one group to another

    Have you posted the correct w/book as it only contains columns of numbers and no explanation/ expected results.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: References that are absolute within a group but that change from one group to another

    Will you always have groups made up of 8 rows of data, with 5 blank rows between groups?

    Pete

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,472

    Re: References that are absolute within a group but that change from one group to another

    John - columns B and C contain formulae. I believe the OP is talking about the fixed ranges therein.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    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
    43,986

    Re: References that are absolute within a group but that change from one group to another

    Conditional absolutes.... you sound like the late Donald Rumsfeld!!

    I'd select the first BLOCK of cells (B1:C8) and CTL-H and replace $ with nothing. Then copy/paste the block, one block at a time down your sheet.
    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

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: References that are absolute within a group but that change from one group to another

    With the data layout you posted, i.e. 8 rows of data followed by 5 blank rows, you can use the following formulae in the cells stated (though I put them in E1 and F1 for comparison):

    B1: =IF(A1="","",SIN(A1)*SUM(INDEX(A:A,INT((ROWS($1:1)-1)/13)*13+1):INDEX(A:A,INT((ROWS($1:1)-1)/13)*13+8)))

    C1: =IF(A1="","",COS(A1)*SUM(INDEX(A:A,INT((ROWS($1:1)-1)/13)*13+1):INDEX(A:A,INT((ROWS($1:1)-1)/13)*13+8)))

    The only difference is the SIN and COS.

    Copy down as required.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    10-16-2017
    Location
    Charlotte
    MS-Off Ver
    2016
    Posts
    31

    Re: References that are absolute within a group but that change from one group to another

    I tried the formula and found that it only worked for the first value in each block.

  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
    43,986

    Re: References that are absolute within a group but that change from one group to another

    And... whst happened when you tried the approach st Podt 5??

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: References that are absolute within a group but that change from one group to another

    Update:

    st Podt 5??
    My typing is this bad without any "help" from some good liquid refreshment.
    Last edited by JohnTopley; 07-08-2021 at 03:40 PM.

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: References that are absolute within a group but that change from one group to another

    Quote Originally Posted by ancog View Post
    ... it only worked for the first value in each block ...
    You must have typed the formulae incorrectly (probably missed out the $ symbol from the ROWS terms). I've added the formulae to cells E1 and F1 in the attached workbook, and copied down to the bottom of your data - they give exactly the same results as you show in columns B and C.

    Hope this helps.

    Pete
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-16-2017
    Location
    Charlotte
    MS-Off Ver
    2016
    Posts
    31

    Re: References that are absolute within a group but that change from one group to another

    Thank You Pete!

+ 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. Why does Group index change when the group is Cut and Paste
    By Gamla kläder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2018, 05:04 PM
  2. Replies: 14
    Last Post: 01-12-2017, 01:41 PM
  3. [SOLVED] insert a row to every group and change color of every top row of group
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-13-2014, 11:00 AM
  4. Replies: 1
    Last Post: 02-10-2014, 10:26 PM
  5. Replies: 0
    Last Post: 05-28-2013, 04:52 PM
  6. calculate absolute values for each date (group sum)
    By Cedicon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-14-2011, 05:06 PM
  7. HOw do I change group of cells from absolute reference?
    By bre in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-24-2005, 11:05 PM

Tags for this Thread

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