+ Reply to Thread
Results 1 to 7 of 7

Excel formula skip rows help!

Hybrid View

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Excel formula skip rows help!

    Hello, I am having trouble copying something with formula. I have a 2 sheets in the same work book. One of them is the weighted average. My formula works wells just when i try to drag it down it does not come out they way i need it too.

    This is the formula in C1
    = IF('Weighted Average'!M1 = "",A1+B1,IF( 'Weighted Average'!M1>0.001,'Weighted Average'!M1))

    On the weighted average page where i'm pulling the value of M1. It has to skips two cell and the next value would be M4.

    So cells C1 to C3 would have these formulas in them.

    = IF('Weighted Average'!M1 = "",A1+B1,IF( 'Weighted Average'!M1>0.001,'Weighted Average'!M1))
    = IF('Weighted Average'!M4 = "",A2+B2,IF( 'Weighted Average'!M4>0.001,'Weighted Average'!M4))
    = IF('Weighted Average'!M7 = "",A3+B3,IF( 'Weighted Average'!M7>0.001,'Weighted Average'!M7))

    However, here is the problem when i select cells C1 to C3 and drag it down to C400 the sequence is messed up.

    Here is how C1 to C6 will look if i drag it down.

    = IF('Weighted Average'!M1 = "",A1+B1,IF( 'Weighted Average'!M1>0.001,'Weighted Average'!M1))
    = IF('Weighted Average'!M4 = "",A2+B2,IF( 'Weighted Average'!M4>0.001,'Weighted Average'!M4))
    = IF('Weighted Average'!M7 = "",A3+B3,IF( 'Weighted Average'!M7>0.001,'Weighted Average'!M7))
    = IF('Weighted Average'!M4 = "",A4+B4,IF( 'Weighted Average'!M4>0.001,'Weighted Average'!M4))
    = IF('Weighted Average'!M7 = "",A5+B5,IF( 'Weighted Average'!M7>0.001,'Weighted Average'!M7))
    = IF('Weighted Average'!M8 = "",A6+B6,IF( 'Weighted Average'!M8>0.001,'Weighted Average'!M8))

    As you can see the A and B cells copy just fine in a sequence. But the M cells go out of wack. Is there any way to do this without manually changing each M?
    I just want the value to add 3 to every M. As in, M1, M4, M7, M10, M13....

    Here is an attachment of what I am trying to do
    Exceltest.xlsx
    Last edited by crash884; 07-18-2013 at 03:38 PM.

  2. #2
    Registered User
    Join Date
    07-12-2012
    Location
    New Hampshire, United States
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Excel formula skip rows help!

    Try this out, let me know if it works:

    = IF(INDIRECT("Weighted Average!"&"M"&3*(ROW()-2)) = "",A1+B1,IF( INDIRECT("Weighted Average!"&"M"&3*(ROW()-2))>0.001,INDIRECT("Weighted Average!"&"M"&3*(ROW()-2))))

  3. #3
    Registered User
    Join Date
    06-04-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Excel formula skip rows help!

    Didn't work came out as REF#

  4. #4
    Registered User
    Join Date
    07-12-2012
    Location
    New Hampshire, United States
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Excel formula skip rows help!

    Got it, although your second IF statement does not have any input for False, so if the value is less than .001 the value will be FALSE:

    = IF(INDIRECT(ADDRESS(3*ROW()-2,13,4,1,"Weighted Average")) = "",A1+B1,IF( INDIRECT(ADDRESS(3*ROW()-2,13,4,1,"Weighted Average"))>0.001,INDIRECT(ADDRESS(3*ROW()-2,13,4,1,"Weighted Average"))))

    I'm sure there's an easier way to do this that i don't know though
    Last edited by carrob; 07-18-2013 at 04:20 PM.

  5. #5
    Registered User
    Join Date
    06-04-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Excel formula skip rows help!

    I tried it but it is not exactly working. it adds A1+B1 but complete ignores the M cell on the weighted average. The whole point of this formula was to check the M cell on weighted average and pull the value if there is anything. If not do A1 + B1 and use that as the value.

  6. #6
    Registered User
    Join Date
    07-12-2012
    Location
    New Hampshire, United States
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Excel formula skip rows help!

    Just tested this out in your example file and it worked fine. I hadn't noticed it before and was using my own file so the references were off:

    = IF(INDIRECT(ADDRESS(3*(ROW()-1)-1,13,4,1,"Weighted Average")) = "",A2+B2,IF( INDIRECT(ADDRESS(3*(ROW()-1)-1,13,4,1,"Weighted Average"))>0.001,INDIRECT(ADDRESS(3*(ROW()-1)-1,13,4,1,"Weighted Average"))))

  7. #7
    Registered User
    Join Date
    06-04-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Excel formula skip rows help!

    This worked, thank you!

+ 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. Excel 2007 : Copy/Drag Formula's - Need to Skip Rows
    By Rapacious in forum Excel General
    Replies: 3
    Last Post: 03-01-2012, 06:10 PM
  2. Drag formula but skip 27 rows
    By rhudgins in forum Excel General
    Replies: 3
    Last Post: 07-20-2010, 06:08 PM
  3. Conditional formula to skip rows
    By ukmacke in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2007, 01:57 PM
  4. skip 'n' rows when copying formula
    By mksnyder in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-08-2007, 02:53 PM
  5. copy paste formula to skip rows
    By Greg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2006, 05:42 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