+ Reply to Thread
Results 1 to 6 of 6

For each cell in loop, find cells that contain the same in range and sum cor. matches

  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Norway
    MS-Off Ver
    Excel 2013
    Posts
    4

    For each cell in loop, find cells that contain the same in range and sum cor. matches

    Hi

    I have a little tricky excel thing that im struggling with. And i have been using the forum for alot of tricky things before that other people as well has struggled with. So hopefylly this time my post will help me and others as well.

    I wanna loop true a range like this and sum corrosponding cells if value in this range is from right is 0.1, 0.2 and so on.
    COL.B
    1.0
    1.0.1
    1.1
    1.2
    1.3
    1.4
    1.4.0.1
    1.4.1
    1.4.1.0.1
    1.5
    1.5.0.1
    1.6

    Example: If cell value is 1.0 i want it to sum all cells in column S that is 1.0.1, 1.0.2 in column B and so on until 1.0 is no longer 1.0.x.x.x. And place the sum in 1.0 column T
    The same if cell value is 1.4 i want to sum all cells in column S that is 1.4.0.1, 1.4.0.2 in column B and so on until 1.4 is no longer 1.4.0.x.x. And place the sum in 1.4 column T

    Almost forgott, the range in column B can also be:
    1.4.1
    1.4.1.0.1
    1.5
    1.5.0.1
    1.4.1
    1.4.1.0.1

    So the numbers can repeat so the loop that search for matches has to stop when the number is no longer.
    And on the top of this the numbers are formatted as text.

    I hope this made any sense. Im not sure if i understand what i wanna do.
    Last edited by oyvpet; 08-17-2014 at 03:23 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,621

    Re: For each cell in loop, find cells that contain the same in range and sum cor. matches

    To attach a Workbook
    (please do not post pictures or links to worksheets)
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    05-15-2013
    Location
    Norway
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: For each cell in loop, find cells that contain the same in range and sum cor. matches

    Thanks for replying. See attached workbook.Book1.xlsx

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,621

    Re: For each cell in loop, find cells that contain the same in range and sum cor. matches

    The description to not correspond to the workbook; however, for the case of "1.0" in column C:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-15-2013
    Location
    Norway
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: For each cell in loop, find cells that contain the same in range and sum cor. matches

    Sorry about that. Thank you for takling the time. The find match range are dynamic and changes all the time. What i was hoping to do was some kind of loop true, find cells matching criteria as mentioned before and sum corresponding matches for each cell in range.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,621

    Re: For each cell in loop, find cells that contain the same in range and sum cor. matches

    If you had posted a more accurate workbook a couple of dynamic ranges could be easily setup.

+ 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] Find First cell that matches range
    By wellsw in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-12-2013, 12:24 PM
  2. Replies: 9
    Last Post: 07-03-2013, 07:39 AM
  3. Formula to Find If Text In a Cell Matches Another Range of Cells
    By purplesamcat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2013, 07:45 PM
  4. Replies: 3
    Last Post: 06-22-2012, 06:40 PM
  5. Put Find code in Loop to find all matches
    By SarahPintal in forum Excel General
    Replies: 4
    Last Post: 02-08-2010, 09:05 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