+ Reply to Thread
Results 1 to 6 of 6

selecting and use cells with the same value

  1. #1
    Forum Contributor
    Join Date
    01-17-2011
    Location
    amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    189

    selecting and use cells with the same value

    Dear sir/madam

    You begin by looking to the value of the first cell in column B now you have to look if there are other cells in column B with the same value.

    2. if you found cells with the same value you go one cell to the right (so to column C) and you have to look to the value of that cell(s)

    3. Now sum up the the numbers of the selected cells of column C and divide them by the number of cells you selected. This value is the answer.

    I have attached my excel file

    I really tried a lot so I hope that someone can help me!
    Attached Files Attached Files
    Last edited by keis386; 06-19-2011 at 07:08 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: selecting and use cells with the same value

    hi, keis386, please check attachment, result in Column E, done with formula, hope this helps
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-17-2011
    Location
    amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    189

    Re: selecting and use cells with the same value

    Thanks for helping me! It is not completly what i wanted, because in most cases there are multiple cells with the same value. The answer here is 0 or 1 so there is only 1 cell that you selected. You select a cell if it has the same value as cell b3. Then you go one to the right to column c. Then you have to sum up the values of all the selected cells and divide it by the number of cells you selected.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: selecting and use cells with the same value

    can you provide a couple of calculation examples basing on the posted workbook?

  5. #5
    Forum Contributor
    Join Date
    01-17-2011
    Location
    amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    189

    Re: selecting and use cells with the same value

    In the attached file there are a few examples
    Attached Files Attached Files

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: selecting and use cells with the same value

    I think you better use afronden() and somproduct.
    Cfr the attachment.
    Attached Files Attached Files



+ 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