+ Reply to Thread
Results 1 to 3 of 3

INDIRECT(MOD(ROW)) skipping a lot of rows

  1. #1
    Registered User
    Join Date
    06-22-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    38

    INDIRECT(MOD(ROW)) skipping a lot of rows

    Hi! I'm currently working on a report and what I'm trying to do is get a Row of information to pull into 4 rows

    My current formula looks like this:
    =INDIRECT("'Paste SAP'!H"&IF(MOD(ROW()-1,4)=1,ROUNDDOWN(((ROW())+3/4),0)," "),1)

    I change the bolded number to correspond to which row (1,2,3,0) but it's not functioning.

    I've done it with other but for some reason this one doesn't work. I've attached the template so you can see what it looks like.

    The problem is with the SAP Tab and the info from the Paste SAP tab.

    Thanks!
    Last edited by PowerSchoolDude; 07-16-2009 at 07:39 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: INDIRECT(MOD(ROW)) skipping a lot of rows

    only one i see not working is in b30 coz sap h30 is blank
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-22-2009
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: INDIRECT(MOD(ROW)) skipping a lot of rows

    I figured it out. It was a misplaced ")".

    =INDIRECT("'Paste SAP'!H"&IF(MOD(ROW()-1,4)=1,ROUNDDOWN(((ROW())+3/4),0)," "),1)

    Working:
    =INDIRECT("'Paste SAP'!H"&IF(MOD(ROW()-1,4)=1,ROUNDDOWN(((ROW()+2)/4),0)," "),1)

    Thanks though for taking time to look over it martindwilson.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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