+ Reply to Thread
Results 1 to 12 of 12

Formula referencing another sheet help

  1. #1
    Forum Contributor
    Join Date
    03-13-2014
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    125

    Formula referencing another sheet help

    So I have two sheets.. as an example, each line in a column looks like this:

    =IF(MMDDYYYY!O4="","",MMDDYYYY!G2)
    =IF(MMDDYYYY!O11="","",MMDDYYYY!G2)
    =IF(MMDDYYYY!O18="","",MMDDYYYY!G2)


    As you can see, O is increasing by 7 every time. I don't know how to design it so I can drag this formula down multiple columns, and have it recognize that O is increasing by 7 every time.

    G2 will also increase by a static amount, but only after 7 lines. It will then jump fairly significantly (It's jumping to the same location on page 2, then after 7 lines it will jump to the same location on page 3, etc.)

    Again, I'd like to be able to drag this down without inputting it for every line, as I'm going to have to do this a LOT.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula referencing another sheet help

    Try

    =IF(INDEX(MMDDYYYY!O:O,(ROWS($1:1)-1)*7+4)="","",INDEX(MMDDYYYY!G:G,CEILING(ROWS($1:1)/7,1)+1))

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Formula referencing another sheet help

    I am so confused with:
    so I can drag this formula down multiple columns, and have it recognize that O is increasing by 7 every time
    did you mean " drag down multiple rows"? look like this:
    A1=IF(MMDDYYYY!O4="","",MMDDYYYY!G2)
    A2=IF(MMDDYYYY!O11="","",MMDDYYYY!G2)
    A3=IF(MMDDYYYY!O18="","",MMDDYYYY!G2)
    ...
    A7=IF(MMDDYYYY!O46="","",MMDDYYYY!G2)
    A8=IF(MMDDYYYY!O53="","",MMDDYYYY!G3)
    ...
    Is that true?
    Quang PT

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formula referencing another sheet help

    Try this example
    This regular formula, copied down, sequentially references cells 7 rows apart on the MMDDYYYY sheet
    Please Login or Register  to view this content.
    Use that same approach to manipulate the G2 reference.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Forum Contributor
    Join Date
    03-13-2014
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Formula referencing another sheet help

    Jonmo1 - I'll try that, perhaps. I might have to change it to deal with the G.

    Bebo21999- Close, except A8=IF(MMDDYYYY!O53="","",MMDDYYYY!G51).

    After 7 more it would be

    A15=(IF(MMDDYY!O102="","",MMDDYYYY!G100)

  6. #6
    Forum Contributor
    Join Date
    03-13-2014
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Formula referencing another sheet help

    I'll look guys - thanks. Still rather new to excel - better than I used to be, but still rather new.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula referencing another sheet help

    Or this

    =IF(INDIRECT("MMDDYYYY!O"&ROW(4:4)*7-24)="","",MMDDYYYY!$G$2)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    Forum Contributor
    Join Date
    03-13-2014
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Formula referencing another sheet help

    All the suggestions so far seem to be relating to that O column very well, thank you! So.. I'm not understanding the math part of these formulas - how do I get it to deal with G2, presuming a 49 increase after 7 rows? So G2 for 7 rows, then G51, then G100

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula referencing another sheet help

    Try
    =IF(INDEX(MMDDYYYY!O:O,(ROWS($1:1)-1)*7+4)="","",INDEX(MMDDYYYY!G:G,(CEILING(ROWS($1:1)/7,1)-1)*49+2))

  10. #10
    Forum Contributor
    Join Date
    03-13-2014
    Location
    Kansas City, Missouri
    MS-Off Ver
    Excel 2013
    Posts
    125

    Re: Formula referencing another sheet help

    Jonmo1's worked perfectly, thank you!

    I'm going to mark this as resolved, but Jonmo1 - if I could trouble you, could you tell me what's going on with that? I'm probably going to have to do similar things for a lot of this, and I would like to know what's happening in that formula so I can understand it and adjust it myself.

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula referencing another sheet help

    You're welcome.

    They key component in there is the ROWS function
    Rows returns the count of the number of rows in a given reference.
    ROWS($1:1) = 1 (there is 1 row in the reference)
    As it's filled down it changes to
    ROWS($1:2) = 2
    ROWS($1:3) = 3
    etc.

    Put that by itself in a cell and drag it down to observe the results.

    After that it's fairly simple math.
    Devide by 7 (every 7 rows)
    Celing rounds that result UP to the nearest 1
    Subtract 1 to begin at 0
    Multiply by 49 and add 2 to begin in row 2

    Hope that helps.

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Formula referencing another sheet help

    Another option :
    In A1:
    =IF(INDIRECT("MMDDYYYY!O"&(ROW(1:1)-1)*7+4)="","",INDIRECT("MMDDYYYY!G"&2+INT((ROW(1:1)-1)/7)*49))

+ 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. Formula referencing sheet index not sheet name
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2010, 04:23 AM
  2. [SOLVED] copy formula referencing sheet name to another sheet
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12:05 PM
  3. [SOLVED] copy formula referencing sheet name to another sheet
    By Tat in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. [SOLVED] copy formula referencing sheet name to another sheet
    By Tat in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] copy formula referencing sheet name to another sheet
    By Tat in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11: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