+ Reply to Thread
Results 1 to 9 of 9

Increment Row inside offset function

  1. #1
    Registered User
    Join Date
    02-18-2020
    Location
    Philippines
    MS-Off Ver
    2017
    Posts
    36

    Increment Row inside offset function

    Hello folks. I have a formula like this in B6

    =OFFSET(RAW!$C9,,ROWS(B$6:C6)-1)

    What I want is to increment the reference RAW!$C9 to add 90 so it would be reference RAW!$C99 in C6, RAW!$C189 in D6 and so on. How to do it while inside the OFFSET formula since I'm using it to get the data from RAW sheet?

    Example (I did this manually)

    from
    1.PNG

    to
    2.PNG
    Last edited by kayafueya; 02-18-2020 at 04:27 AM.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Increment Row inside offset function

    i think this is what your trying to do
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    02-18-2020
    Location
    Philippines
    MS-Off Ver
    2017
    Posts
    36

    Re: Increment Row inside offset function

    Hello. I wish to retain ,,ROWS(B$6:C6)-1 since i used it to transpose the data in RAW from column to row. Can i make it so in the next date it would be RAW!$C$99?

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Increment Row inside offset function

    at a lost to what you are trying to achieve with that

    Syntax
    =OFFSET (reference, rows, cols, [height], [width])

    RAW!$C9 is your starting point
    rows to increase
    (ROW(A1)-1)*90 = 9,99,189,etc

    you had the next bit in columns
    this ROWS(B$6:C6)-1
    Just moves the starting column right every row
    0,1,2,etc

    so the sequence your grabbing is C9,D99,E189,etc (single cells)
    is this what you want?

    or are you after areas?
    C9, C9:C99, C9:C189

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Increment Row inside offset function

    oh sorry i noticed you want to go across

    use column instead of row to increment

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by humdingaling; 02-18-2020 at 03:14 AM.

  6. #6
    Registered User
    Join Date
    02-18-2020
    Location
    Philippines
    MS-Off Ver
    2017
    Posts
    36

    Re: Increment Row inside offset function

    Sorry if I make it confusing to you. But what I want is this:

    from

    Attachment 663222

    to

    Attachment 663223

    I want to make the reference which is RAW!$C$9 increment to make it RAW!$C$99 , 1RAW!$C$189 and so on, in the OFFSET function.

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Increment Row inside offset function

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Increment Row inside offset function

    your two "attachments" dont work

    are you sure you know what ROWS(B$6:C6)-1 is actually doing
    with just offset by itself...its adjusting the height of your array size as you go down

    so in row 6 it is 0
    row 7 = 1
    row 8 = 2
    etc

    best do as Pepe suggest are post spreadsheet to avoid further confusion

  9. #9
    Registered User
    Join Date
    02-18-2020
    Location
    Philippines
    MS-Off Ver
    2017
    Posts
    36

    Re: Increment Row inside offset function

    Quote Originally Posted by humdingaling View Post
    i think this is what your trying to do
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This is a great help! Thank you so much!

+ 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. range offset inside range.foruma function
    By foxtrotter in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-25-2019, 02:43 PM
  2. ROW() inside OFFSET() inside IF() not expanding array always!
    By tralston in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-23-2016, 01:19 PM
  3. [SOLVED] Increment Cell references inside of an IF Formula
    By Feicstur in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2015, 01:43 PM
  4. Replies: 0
    Last Post: 01-19-2013, 01:35 PM
  5. Auto Increment inside quotes & hyperlink
    By gregbennett81 in forum Excel General
    Replies: 3
    Last Post: 07-20-2011, 04:42 PM
  6. Replies: 3
    Last Post: 02-09-2011, 08:40 PM
  7. [SOLVED] Increment stopvalue inside a For loop
    By Revenger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2006, 04:25 AM

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