+ Reply to Thread
Results 1 to 8 of 8

How to offset previously offset-ed cell ?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-07-2015
    Location
    Dublin
    MS-Off Ver
    MAC OS X OFFICE
    Posts
    4

    How to offset previously offset-ed cell ?

    Hello there - I am a very basic excel user (and by that I mean it). I have a simple spreadsheet done but now I am working on another version of it that will display just the information I want and in different layout. So my first column have all the legend and it just goes from A1 cell to A50, I have then each "product" inserted in the columns to the right so for example it's A2, B2 etc. However in my case each column is made from two columns some of which I have merged. So in fact in my starting cell which is the name of the products its merged from cells b2 and c2. In new sheet I want to populate certain cells automatically so I don't have to manually copy&paste. Because of the merging cells I discovered I need to use offset to get the right data. The further complication is that I am now coping this long row into a column. So so far I came up with the following fx:

    for the initial cell in new sheet
    Formula: copy to clipboard
    =OFFSET(Sheet2!B$10,,0)

    for the second cell in the same sheet
    Formula: copy to clipboard
    =OFFSET(Sheet2!B$10,,2)


    However my problem is the next cell and next after that and so on. It only seems to take the previous cell if I autofill down the column so every time I am getting same value as a result. Which for second formulas is in fact cell D$10 but in third I need to have F$10 and then H$10 and so on. And I just can't get around it unfortunately.

    I'm very sorry if this all is explained in a clumsy way but that's best I could come up with...

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: How to offset previously offset-ed cell ?

    =OFFSET(Sheet2!B$10,,(ROW($1:1)-1)*2)
    TRY THIS AND COPY TOWARDS DOWN
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    06-07-2015
    Location
    Dublin
    MS-Off Ver
    MAC OS X OFFICE
    Posts
    4

    Re: How to offset previously offset-ed cell ?

    Quote Originally Posted by nflsales View Post
    =OFFSET(Sheet2!B$10,,(ROW($1:1)-1)*2)
    TRY THIS AND COPY TOWARDS DOWN
    It autofills B10 cell only all the way down.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: How to offset previously offset-ed cell ?

    Attach a sample file with desired results

  5. #5
    Registered User
    Join Date
    06-07-2015
    Location
    Dublin
    MS-Off Ver
    MAC OS X OFFICE
    Posts
    4

    Re: How to offset previously offset-ed cell ?

    So that's how my original sheet look like.

    name item1 (cell - B1) item2 (cell - D1)
    wieght 10kg 20kg
    size L XL
    color blue red
    condition new used

    My new sheet should look like that:
    name weight size
    item1 (cell - B1) 10kg L
    item2 (cell - D1) 20kg XL

    So when I'm using my initial offset function I do get my initial Cell right which is Sheet2!B$10 (or in my new example above its item1) then the next one using the second function populates correctly as well which is Sheet2!D$10 (or in example above item2) - however if I just copy this second function to the third cell all I am getting is the same Cell Sheet2!D$10 or if you like item2 all the way down from. As I understand it that function doesn't refer to cell D$10 but to B$10 but what I want to get is B$10 then D$10 after that F$10 and so on (the reason is that I have merged 2 cells together and that's why I need to jump from B to D then to F and so on). But for that I have to manually alter each formula by adding another 2 to the offset so that it know that in 3rd row I am adding offset 4 to the reference cell B$10 and not 2 to already offseted D$10.
    Last edited by freshe; 06-07-2015 at 04:51 AM.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: How to offset previously offset-ed cell ?

    =OFFSET(Sheet2!$B$1,COLUMN(A:A)-1,(ROW(1:1)-1)*2)
    It is not preparable if you attach sample file then we can use index formula

  7. #7
    Registered User
    Join Date
    06-07-2015
    Location
    Dublin
    MS-Off Ver
    MAC OS X OFFICE
    Posts
    4

    Re: How to offset previously offset-ed cell ?

    Quote Originally Posted by nflsales View Post
    =OFFSET(Sheet2!$B$1,COLUMN(A:A)-1,(ROW(1:1)-1)*2)
    It is not preparable if you attach sample file then we can use index formula
    Thank you very much it works, would never have guessed that myself. Thanks again.

  8. #8
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: How to offset previously offset-ed cell ?

    Never mind... should have read all posts before replying.
    Last edited by jhren; 06-07-2015 at 09:38 AM.

+ 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. Select offset variable offset cells
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2014, 06:12 AM
  2. Replies: 3
    Last Post: 06-01-2014, 10:26 AM
  3. function similar to offset to offset the offset
    By Jerseynjphillypa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2012, 03:07 PM
  4. Reformatting - insert formula with offset, then offset to next cell
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2011, 05:41 AM
  5. Replies: 7
    Last Post: 11-04-2008, 06:41 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