+ Reply to Thread
Results 1 to 5 of 5

MULTI SHEET- populate a cell in results sheet with last entry from previous sheets

  1. #1
    Registered User
    Join Date
    03-20-2011
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    27

    MULTI SHEET- populate a cell in results sheet with last entry from previous sheets

    Hi,

    I am trying to get a cell, lets say A2, on Sheet 5 of my log to be equal to the last non blank or greater than zero entry in cell A2 from Sheet 1 through Sheet 4.

    Example: sheet 1 cell A2 = 5, sheet 2 cell A2 = 1, sheet 3 cell A2 = 3, sheet 4 cell A2 = blank.

    The value I want in cell A2 of sheet 5 is 3. Any help would be greatly appreciated.
    Last edited by IZAKK; 03-22-2011 at 09:49 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: MULTI SHEET populate a cell with last entry from previous sheets

    The value I want in cell A2 of sheet 5 is 3
    Since that value, per your example, comes from sheet3!A2, what is the criteria that this cell value should be used rather than, say, sheet1!A2, which = 5.

    You need to provide a more explicit explanation and the criteria/logic for deciding which sheet/cell gets priority.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    06-21-2010
    Location
    Seychelles
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: MULTI SHEET populate a cell with last entry from previous sheets

    I am new to VBA therefore needs help.

    I have three worksheet say CompanyA, Supplier1 & Supplier2.

    In CompanyA it has headers:
    Date Company Payment Amount Invoice No. Comments

    I update these details when I make payments to Supplier1 & 2, then I have to go and update the two Suppliers' worksheet.

    Can anyone help me in VBA so that I just use a VBA comment or button to update these data automatically without having to copy and pasting myself.

    Please feel free if anyone knows an easier than what I'm thinking.

  4. #4
    Registered User
    Join Date
    03-20-2011
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: MULTI SHEET populate a cell with last entry from previous sheets

    Quote Originally Posted by Palmetto View Post
    Since that value, per your example, comes from sheet3!A2, what is the criteria that this cell value should be used rather than, say, sheet1!A2, which = 5.

    You need to provide a more explicit explanation and the criteria/logic for deciding which sheet/cell gets priority.
    In my example the cell A2 in sheet five would have the value of 3 because 3 would be the last non-blank and greater than zero entry of the sheets (sheets 1 thru 4). I'm trying to keep tract of an account by month. Each month has it's own sheet (Jan thru Dec). The value each month could go up or down so I want the latest months value in my results sheet. In my example sheet five would be my results sheet. I going to try to attach an example log to this if I can. I hope that made more sense. Thanks for the help.
    Attached Files Attached Files
    Last edited by IZAKK; 03-22-2011 at 09:45 PM.

  5. #5
    Registered User
    Join Date
    03-20-2011
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: MULTI SHEET populate a cell with last entry from previous sheets

    Quote Originally Posted by IZAKK View Post
    In my example the cell A2 in sheet five would have the value of 3 because 3 would be the last non-blank and greater than zero entry of the sheets (sheets 1 thru 4). I'm trying to keep tract of an account by month. Each month has it's own sheet (Jan thru Dec). The value each month could go up or down so I want the latest months value in my results sheet. In my example sheet five would be my results sheet. I going to try to attach an example log to this if I can. I hope that made more sense. Thanks for the help.
    Just trying to get this back up top to hopefully get some help. Anybody have any ideas?

+ 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