+ Reply to Thread
Results 1 to 4 of 4

Referencing line items from another tab

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Referencing line items from another tab

    Hello. I have 3 line items in the first tab. In the second tab I have formulas that say "=Sheet1!A1" etc. When I add a row in the first sheet, I would like it to update in the second but it doesn't. How can I do this? Additionally, I would like the formatting to stay the same in the second sheet, so if a row changes position the formatting will still be there. Is this possible? I've added a worksheet with more info.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Referencing line items from another tab

    You just need to copy your formula in Sheet2 down more rows. I would suggest this formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Otherwise if the corresponding row in Sheet1 is blank, your formula will show a 0.

    Formatting will not change on Sheet2 no matter what happens on Sheet1.

    (This works for adding new rows at the end of Sheet1. If you want to insert or delete rows, then you need a different approach.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Referencing line items from another tab

    Yeah, I need to insert and delete rows. And there is no way to have the format move with the rows (not even a macro)? What if I have the formatting in sheet 1(somehow transferred to sheet 2)? Thanks.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Referencing line items from another tab

    To be able to delete and insert rows you would use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Using that, row 2 of Sheet2 will always show whatever is in row 2 of Sheet1.

    I misunderstood your point about formatting. To keep the formatting associated with the data being referenced requires one of two things. Can you explain how you decide what formatting to use?
    1. If your formatting is based on rules about the data then it can be done with conditional formatting
    2. If your formatting is arbitrary based on whatever the user wants to do with no particular rules, then it requires macros
    3. Edit: If you formatting is supposed to copy whatever is in Sheet1 then it requires macros.

+ 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. Combining multiple line items into one line item based on column.
    By mguz018 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2012, 07:22 PM
  2. Referencing Multiple Items from Pivot Field in macro
    By dgeisman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2012, 01:01 PM
  3. Replies: 3
    Last Post: 07-03-2010, 03:45 AM
  4. referencing data set against known good and bad items
    By artemis_f0wl in forum Excel General
    Replies: 4
    Last Post: 03-14-2009, 11:02 PM
  5. Referencing multiple items
    By msbaath in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-02-2008, 03:52 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