Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gats13
 
Posts: n/a
Default Merging Cells but have each cell counted in the range of merged c.

I'm trying to figure out a formula that will count each cell in a range of
merged cells as having the same text as the 1st cell in the range.
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try something like
=COUNTIF(A2:A20,A1)

--
Regards
Frank Kabel
Frankfurt, Germany

"gats13" schrieb im Newsbeitrag
...
I'm trying to figure out a formula that will count each cell in a

range of
merged cells as having the same text as the 1st cell in the range.


  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Gats,

You would need to use a user-defined-function, given below. Copy and paste
the code into a codemodule, and use it like

=mySum(A1:D4)

HTH,
Bernie
MS Excel MVP

Function mySum(inRange As Range) As Double
Dim myCell As Range
Dim myMC As Range
For Each myCell In inRange
For Each myMC In myCell.MergeArea
mySum = mySum + myMC.Value
Next myMC
Next myCell

End Function


"gats13" wrote in message
...
I'm trying to figure out a formula that will count each cell in a range of
merged cells as having the same text as the 1st cell in the range.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I link many cells to one particular cell? fish@divi Excel Discussion (Misc queries) 2 January 4th 05 11:00 PM
How do I link many cells to one particular cell? justinfishman22 Excel Discussion (Misc queries) 2 January 4th 05 12:09 AM
Heps to design Locked/Unlocked cells in protected worksheet Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:09 AM
Auto fit merged cells Anson Excel Discussion (Misc queries) 1 December 20th 04 09:09 PM
How do you delete one cell from a range of protected cells Cgbilliar Excel Worksheet Functions 2 November 3rd 04 10:42 PM


All times are GMT +1. The time now is 02:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"