+ Reply to Thread
Results 1 to 8 of 8

Search sheet for values and add up values of found results

  1. #1
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Search sheet for values and add up values of found results

    Hello,

    I'm trying to do the following
    Croscompare joined values "B:E" for each row on sheet 2,3,4.
    Then extract each result of croscomparing to sheet 1 without duplicates and then use these results as search strings again.
    And then for each result that matches the search string add up values in column "I" from sheet 2,3,4 to the search string on sheet 1 to column "H".

    Hope someone understands what I mean

  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: Search sheet for values and add up values of found results

    Quote Originally Posted by stojko89 View Post
    Hope someone understands what I mean
    No, not really



    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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
    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: Search sheet for values and add up values of found results

    Quote Originally Posted by stojko89 View Post
    Hope someone understands what I mean
    No, not really



    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  4. #4
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Search sheet for values and add up values of found results

    Hmm,
    I've been trying something now and here is what I got:
    Please Login or Register  to view this content.
    Something is going on, because the table on sheet "Kosovnica" is expanding but I don't see any values

  5. #5
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Search sheet for values and add up values of found results

    Hi,
    so I've changed the code a little again, but it still doesn't show any values:
    Please Login or Register  to view this content.
    Can someone please help me out with this?
    I'm trying to copy values from multiple sheets of cells "B:E" in found rows to sheet("kosovnica"). And then remove the duplicates.
    All values I'm trying to copy are from one table to table on sheet("kosovnica").
    Plus I don't know why it doesn't skip sheet("kosovnica")...

  6. #6
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Search sheet for values and add up values of found results

    Hi,

    Can someone please help me out with this, I'm a little lost.
    I have a macro now that copys values from each table in the Wb to the main table on sheet "kosovnica"
    Then it removes duplicate values.
    Searches the joined values as string from sheet "kosovnica" and adds up values in columns "H" and "J" from found strings in each sheet.
    But the values of say first 2 strings are good, but the others arent.

    I've attaced the WB I'm testing this with and the macro is called "SkupekMateriala".
    Please can someone try this and look at the code and maybe see what mistake I'm makeing?
    I'm a little lost
    The code is this:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Search sheet for values and add up values of found results

    Wanted to let you all know I've figured everything out!
    Marking as solved.

  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: Search sheet for values and add up values of found results

    What did you come up wit to fix this?

+ 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. [SOLVED] Lookup values from sheet 2 with sheet 1 and copy found values in cell b of sheet 1
    By spa3212 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-21-2016, 03:28 AM
  2. Replies: 2
    Last Post: 09-12-2015, 11:02 AM
  3. Replies: 5
    Last Post: 09-01-2014, 08:05 AM
  4. Replies: 3
    Last Post: 03-31-2014, 01:00 PM
  5. Use VBA loops to search for a list of values, delete columns they are found in
    By jfgay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-25-2013, 07:58 AM
  6. search cell values based on list of values in other sheet and add color to row
    By darkbraids in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2012, 08:35 AM
  7. search a cell for values in a range, return values found
    By carpe.cervisiam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2011, 12: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