+ Reply to Thread
Results 1 to 9 of 9

2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Philippines
    MS-Off Ver
    2003 to 2010
    Posts
    16

    Wink 2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column

    Hi

    I basically want to automate (using macro) the inputting of certain amounts to a general output sheet using a macro. Here's my sheet and I hope you understand my imaginations

    Input Sheet and Output Sheet - Automate.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column

    If your data will be added below iexisting data, you do not need VBA for this.

    This regular formula will pull out unique entries from Input sheet so AFTER sheet...

    I used C2, so you can compare with your data...
    =IFERROR(INDEX(Input!$A$2:$A$3,MATCH(0,INDEX(COUNTIF($C$1:C1,Input!$A$2:$A$3),0,0),0)),"")

    then to get the totals...
    =IF(C2="","",SUMIF(Input!$A:$A,'Output AFTER input'!C2,Input!$B:$B))
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-07-2013
    Location
    Philippines
    MS-Off Ver
    2003 to 2010
    Posts
    16

    Re: 2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column

    Quote Originally Posted by FDibbins View Post
    If your data will be added below iexisting data, you do not need VBA for this.

    This regular formula will pull out unique entries from Input sheet so AFTER sheet...

    I used C2, so you can compare with your data...
    =IFERROR(INDEX(Input!$A$2:$A$3,MATCH(0,INDEX(COUNTIF($C$1:C1,Input!$A$2:$A$3),0,0),0)),"")

    then to get the totals...
    =IF(C2="","",SUMIF(Input!$A:$A,'Output AFTER input'!C2,Input!$B:$B))
    copied down
    Thank you very much for the formulas.

    I'm not sure where to put the above formulas but technically, I only have 1 Output Sheet. I just made up two Output Sheets to show the effect of adding the inputs from the Input Sheet. Also I can't use the columns with corresponding letters (like column C) and practically, I don't have a lot of free columns as there are other formulas to it, I've used up around column ER

    But I'm currently exploring your formula if it would hit my specs

  4. #4
    Registered User
    Join Date
    08-07-2013
    Location
    Philippines
    MS-Off Ver
    2003 to 2010
    Posts
    16

    Re: 2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column

    In the Output Sheet BEFORE AB123 has a value of 90 but when the inputs from the Input Sheet is added it became 190

    On the other hand, in the Output Sheet BEFORE, CD456 was not existing but after applying the Input Sheet it is added as a new line item.

    All of these are happening only in one Output Sheet. So formally speaking, there is no "BEFORE" and "AFTER" sheet. The "AFTER" sheet is just an expectation of the results if we apply the fix or formula

  5. #5
    Registered User
    Join Date
    08-07-2013
    Location
    Philippines
    MS-Off Ver
    2003 to 2010
    Posts
    16

    Re: 2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column

    Other inputs on this is also appreciated

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column

    Perhaps it might help if you provided a more realist (but still no sensitive data) example of what you are working with, how it will progress, and what you want to end up with?

    (and yes,I got it that you have only 1 output sheet)

  7. #7
    Registered User
    Join Date
    08-07-2013
    Location
    Philippines
    MS-Off Ver
    2003 to 2010
    Posts
    16

    Re: 2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column

    Thank you for your suggestions. I'm not sure if this would help and clear it up a bit. But here's a new file.

    Input Sheet and Output Sheet - Add up and New Line.xlsx

    1. Work Paper is already populated with details.
    2. When I put entries on the input sheet and have a, say, button, the Work Paper will be populated with the details on the input sheet or new entries.
    3. The result is in the ending work paper.

    Not sure though, if this helps but this is my best illustration

    Thank you so much for your assistance.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: 2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column

    OK have you considered adding the new data to the bottom of the old data? That way, we can use sumif() to pull in the total data. Take a look at the 2 new tabs (red) that I added

  9. #9
    Registered User
    Join Date
    08-07-2013
    Location
    Philippines
    MS-Off Ver
    2003 to 2010
    Posts
    16

    Re: 2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column

    Quote Originally Posted by FDibbins View Post
    OK have you considered adding the new data to the bottom of the old data? That way, we can use sumif() to pull in the total data. Take a look at the 2 new tabs (red) that I added
    Hi, not sure where the two tabs are. Can't seem to find them, though on the attached file.

+ 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. Replies: 2
    Last Post: 06-11-2014, 11:14 AM
  2. [SOLVED] How to retrieve desire text from input sheet to output sheet ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-12-2013, 06:13 PM
  3. [SOLVED] how to multiple vlookup from input sheet to output sheet
    By nur2544 in forum Excel General
    Replies: 7
    Last Post: 11-21-2012, 01:48 AM
  4. Sync several output sheets to one input sheet
    By PatG in forum Excel General
    Replies: 0
    Last Post: 09-28-2011, 10:26 AM
  5. Triggering value change in vba output on sheet two when input comes from sheet one
    By heidenman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2009, 02:03 PM

Tags for this Thread

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