+ Reply to Thread
Results 1 to 6 of 6

Increment Cell references inside of an IF Formula

  1. #1
    Registered User
    Join Date
    07-01-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    19

    Increment Cell references inside of an IF Formula

    I have the following formula

    =IF('Sheet1'!B6<>"",'Sheet1'!B6,"")

    I need to copy it across roughly 200 rows but I need the cell reference row to increment by 4 each row.

    End of result would be a series of rows that look like:

    =IF('Sheet1'!B6<>"",'Sheet1'!B6,"")
    =IF('Sheet1'!B10<>"",'Sheet1'!B10,"")
    =IF('Sheet1'!B14<>"",'Sheet1'!B14,"")
    =IF('Sheet1'!B18<>"",'Sheet1'!B18,"")
    =IF('Sheet1'!B22<>"",'Sheet1'!B22,"")

    Thoughts?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Increment Cell references inside of an IF Formula

    Im sure someone will have a better way, but in the mean time, change your reference to this...

    INDIRECT("'Sheet1'!B"&ROW(A2)+ROW(A1)*3+1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-01-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Increment Cell references inside of an IF Formula

    I didn't need elegant, I needed results. You sir, delivered! Thanks

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Increment Cell references inside of an IF Formula

    Im happy it worked for you, thanks for the feedback

  5. #5
    Registered User
    Join Date
    07-01-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Increment Cell references inside of an IF Formula

    quick question, what did A2 and A1 signify in the indirect formula?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Increment Cell references inside of an IF Formula

    They are just starting points.

    A2 is where you want to start adding from, and A1 is an increment to add multiples of 4 (3 +1) for each row you copy down

+ 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. [SOLVED] increment all cell references in an array formula by 24 when copied down a row
    By ariapro22 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-29-2013, 05:51 AM
  2. Increment columns, cell references, and labels.
    By XLVBA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2012, 01:59 PM
  3. Increment Cell References
    By Djokovic in forum Excel General
    Replies: 2
    Last Post: 03-11-2011, 01:03 PM
  4. Formula to increment indirect references
    By freud1 in forum Excel General
    Replies: 22
    Last Post: 03-07-2009, 10:03 AM
  5. Cell References inside a LINK
    By karaflas01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-02-2008, 11:03 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