+ Reply to Thread
Results 1 to 13 of 13

count merge cells as 1 if the same value

  1. #1
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    count merge cells as 1 if the same value

    count the merged cells and treat as 1 if the value in is same, for column J5:J798 - let say some of the cell has a value of "B" and some of the are merged (2, 3, 4 or more rows) i need to count as 1 if merged.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: count merge cells as 1 if the same value

    Use Countif Function
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The range J791:J795 has been merged and marked with the text A.

    So countif will get the result as 1.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: count merge cells as 1 if the same value

    but how about those blank / empty cell with also with merge need also to count?

  4. #4
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: count merge cells as 1 if the same value

    use the column K5:k795 to count the blank / empty cells with some of them have merged

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: count merge cells as 1 if the same value

    To get the count of used cells in a range
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To get the count of cells in a row
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To get the count of blank cells in a range
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: count merge cells as 1 if the same value

    Thanks, but try to filter column K with Blanks and when scroll you may find some with text, how to count only the exact rows (not merge rows) + merged rows (this is counted as 1 only even if merged for more than 1 rows [2,3,4,5 or more rows])

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: count merge cells as 1 if the same value

    That is why we never suggest merged cells

  8. #8
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: count merge cells as 1 if the same value

    any possible vba for this

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: count merge cells as 1 if the same value

    Yes using vba we can... Can I offer you UDF?

  10. #10
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: count merge cells as 1 if the same value

    yes, i need it to finish my report, thanks in advance

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: count merge cells as 1 if the same value

    Try this UDF...

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: count merge cells as 1 if the same value

    Thanks, i will try, question the UDF is counting for merged rows?

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: count merge cells as 1 if the same value

    It will count all the cells of the merged range.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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