+ Reply to Thread
Results 1 to 7 of 7

Auto-fill using values from another worksheet?

  1. #1
    Registered User
    Join Date
    06-07-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    21

    Auto-fill using values from another worksheet?

    Cell B24:B34 contain specific data from another worksheet.

    For instance, cell B24 contains the following:
    =IF(N('Project List Worksheet'!C4)=0,"",'Project List Worksheet'!C4)
    After I select cells B24:B34 and drag down using auto-fill I am hoping to yield the following pattern:
    =IF(N('Project List Worksheet'!C6)=0,"",'Project List Worksheet'!C6)
    And continue that "+2" pattern for future cells in the new worksheet instead of getting this result:
    =IF(N('Project List Worksheet'!C19)=0,"",'Project List Worksheet'!C19)
    in cell B39.

    Thanks

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Auto-fill using values from another worksheet?

    use this
    =IF(N(INDIRECT("'Project List Worksheet'!C"&(ROW()-23)*2+2))=0,"",INDIRECT("'Project List Worksheet'!C"&(ROW()-23)*2+2))

  3. #3
    Registered User
    Join Date
    06-07-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Auto-fill using values from another worksheet?

    Quote Originally Posted by Sadath31 View Post
    use this
    =IF(N(INDIRECT("'Project List Worksheet'!C"&(ROW()-23)*2+2))=0,"",INDIRECT("'Project List Worksheet'!C"&(ROW()-23)*2+2))
    Does anything go into the row() space?

    My current B24:B34 looks like this (I should have included this too, sorry):
    B24=IF(N('Project List Worksheet'!C4)=0,"",'Project List Worksheet'!C4)
    B25=IF(N('Project List Worksheet'!D4)=0,"",'Project List Worksheet'!D4)
    B26=IF(N('Project List Worksheet'!E4)=0,"",'Project List Worksheet'!E4)
    B27=IF(N('Project List Worksheet'!F4)=0,"",'Project List Worksheet'!F4)
    ..=IF(N('Project List Worksheet'!G5)=0,"",'Project List Worksheet'!G5)
    ..=IF(N('Project List Worksheet'!H5)=0,"",'Project List Worksheet'!H5)
    ..=IF(N('Project List Worksheet'!I5)=0,"",'Project List Worksheet'!I5)
    ..=IF(N('Project List Worksheet'!J5)=0,"",'Project List Worksheet'!J5)
    ..=IF(N('Project List Worksheet'!K4)=0,"",'Project List Worksheet'!K4)
    B33=IF(N('Project List Worksheet'!L4)=0,"",'Project List Worksheet'!L4)
    B34=IF(N('Project List Worksheet'!M4)=0,"",'Project List Worksheet'!M4)
    I have a blank row A20, and have some other cells between B21:B23.

    What I want is when I grab the selection A20:D34, and then use auto-fill for the cells below to adjust from this example:
    =IF(N('Project List Worksheet'!E4)=0,"",'Project List Worksheet'!E4)
    to
    =IF(N('Project List Worksheet'!E6)=0,"",'Project List Worksheet'!E6)
    and for the ones with 5s,
    =IF(N('Project List Worksheet'!J5)=0,"",'Project List Worksheet'!J5)
    to
    =IF(N('Project List Worksheet'!J7)=0,"",'Project List Worksheet'!J7)
    Sorry
    & Thanks

  4. #4
    Registered User
    Join Date
    06-07-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Auto-fill using values from another worksheet?

    bump please.


    thanks

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Auto-fill using values from another worksheet?

    Did you try Sadath's formula? Nothing goes in the parentheses in ROW().
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    06-07-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Auto-fill using values from another worksheet?

    Quote Originally Posted by ChemistB View Post
    Did you try Sadath's formula? Nothing goes in the parentheses in ROW().
    When I use the autofill option, it links all cells to this result.
    IF(N(INDIRECT("'Project List Worksheet'!C"&(ROW()-23)*2+2))=0,"",INDIRECT("'Project List Worksheet'!C"&(ROW()-23)*2+2))
    I could be messing up somehow...

  7. #7
    Registered User
    Join Date
    06-07-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Auto-fill using values from another worksheet?

    I attached a picture of my worksheet...I am trying to get the red-boxed items to be duplicated so they are automatically filled in from another worksheet when data is entered. The two columns to the right of the red-boxed column are all based off of the red-boxed column and I have no problem replicating those from the active sheet.

    The second attachment is a picture of the other worksheet where the data is coming from

    The following:
    =IF(N(INDIRECT("'Project List Worksheet'!C"&(ROW()-23)*2+2))=0,"",INDIRECT("'Project List Worksheet'!C"&(ROW()-23)*2+2))
    Will not work for separate row purposes I think, I am not very good at explaining it, I think the pictures will tell the story better than myself.
    Attached Images Attached Images
    Last edited by mitts; 06-08-2011 at 07:42 AM.

+ 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