Technology Get the latest on technology, electronics and software…

Need some Excel help!

Thread Tools
 
Old Dec 15, 2005 | 01:34 PM
  #1  
Scrib's Avatar
Thread Starter
Administrator Alumnus
 
Joined: Oct 2001
Posts: 26,326
Likes: 131
From: Northwest IN
Exclamation Need some Excel help!

I'm trying to count the numbers of 1s, 2s, and 3, in particular cells.

The values are in cells in the same column, however there is data between these cells, so I can't say somethiing like =countif(C2:C240,"1")

It has to be somelike like =countif(C2,C6,C10,C14,C19,C37,C42,C98,"1")

^^^but the above clearly doesn't work.

The cells are all over the place.

Ideas?
Reply
Old Dec 15, 2005 | 01:36 PM
  #2  
Nugs3's Avatar
Drifting
 
Joined: Apr 2001
Posts: 2,567
Likes: 0
From: Chicago
I'm lost
Reply
Old Dec 15, 2005 | 01:38 PM
  #3  
ccannizz11's Avatar
My Work is Done Here
 
Joined: Jun 2004
Posts: 11,134
Likes: 2
From: Still too far from the beach
It should still count the number of 1's even if there is other data in other cells.
Reply
Old Dec 15, 2005 | 01:40 PM
  #4  
doopstr's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Jan 2001
Posts: 25,967
Likes: 2,685
From: Jersey
I would quit that job and take the new one.
Reply
Old Dec 15, 2005 | 01:40 PM
  #5  
JimmyCarter's Avatar
likes it raw
 
Joined: Jan 2005
Posts: 10,133
Likes: 1
From: 42.4°N, 71.1°W
Originally Posted by ccannizz11
It should still count the number of 1's even if there is other data in other cells.
Unless there are 1's in the other cells that aren't related to what he's counting?

Just set up another column which contains only the selected cells you want and run your count formula then
Reply
Old Dec 15, 2005 | 01:43 PM
  #6  
Scrib's Avatar
Thread Starter
Administrator Alumnus
 
Joined: Oct 2001
Posts: 26,326
Likes: 131
From: Northwest IN
^^^^^^^^

I would set up another column, but the spreadsheet can't be altered easily. This is a pretty complex model and a genius manager has decided she wants a count of some data points. I'm sensing we're fucked... I haven't found any way to do this easily...
Reply
Old Dec 15, 2005 | 01:47 PM
  #7  
knight rider's Avatar
Rooting for Acura
20 Year Member
Liked
Loved
Community Favorite
iTrader: (1)
 
Joined: Nov 2003
Posts: 8,165
Likes: 1,835
From: Austin Burbs
Whats wrong with your example?

If you know which cells have the 1s, 2s, and 3s you can do...

=sum(c2,c6,c10...) for 1s
=sum(c3,c5,c11...) / 2 for 2s
=sum(c4,c7,c12...) / 3 for 3s

This would work only if 1s, 2s and 3s are not interchangeable in the same cells of coarse.
Reply
Old Dec 15, 2005 | 01:48 PM
  #8  
rise's Avatar
Suzuka Master
 
Joined: Jul 2001
Posts: 6,010
Likes: 1
Originally Posted by JimmyCarter
Unless there are 1's in the other cells that aren't related to what he's counting?

Just set up another column which contains only the selected cells you want and run your count formula then
werd.

copy the cells the you want into a new spreadsheet (paste special - values)...then do your count there.

or copy the whole column to another spreadsheet and do it that way.

i think we need more info on your limitations...
Reply
Old Dec 15, 2005 | 01:52 PM
  #9  
JimmyCarter's Avatar
likes it raw
 
Joined: Jan 2005
Posts: 10,133
Likes: 1
From: 42.4°N, 71.1°W
Originally Posted by knight rider
Whats wrong with your example?

If you know which cells have the 1s, 2s, and 3s you can do...

=sum(c2,c6,c10...) for 1s
=sum(c3,c5,c11...) / 2 for 2s
=sum(c4,c7,c12...) / 3 for 3s

This would work only if 1s, 2s and 3s are not interchangeable in the same cells of coarse.
If he could easily tell which ones had 1s and 2s he wouldn't need the count function
Reply
Old Dec 15, 2005 | 01:52 PM
  #10  
ccannizz11's Avatar
My Work is Done Here
 
Joined: Jun 2004
Posts: 11,134
Likes: 2
From: Still too far from the beach
Originally Posted by rise
i think we need more info on your limitations...
]

Reply
Old Dec 15, 2005 | 01:59 PM
  #11  
knight rider's Avatar
Rooting for Acura
20 Year Member
Liked
Loved
Community Favorite
iTrader: (1)
 
Joined: Nov 2003
Posts: 8,165
Likes: 1,835
From: Austin Burbs
Originally Posted by JimmyCarter
If he could easily tell which ones had 1s and 2s he wouldn't need the count function
shut up
Reply
Old Dec 15, 2005 | 02:11 PM
  #12  
YOTH's Avatar
Thriller
 
Joined: Jun 2005
Posts: 3,449
Likes: 0
From: NY
Originally Posted by JimmyCarter
If he could easily tell which ones had 1s and 2s he wouldn't need the count function
Is this the same guy who asked an Excel question and pissed everyone who tried to help?? Doesn't sound like it but just wondering.
Reply
Old Dec 15, 2005 | 02:12 PM
  #13  
Scrib's Avatar
Thread Starter
Administrator Alumnus
 
Joined: Oct 2001
Posts: 26,326
Likes: 131
From: Northwest IN
Do all the count functions in excel work for continuous ranges?
Reply
Old Dec 15, 2005 | 02:20 PM
  #14  
JimmyCarter's Avatar
likes it raw
 
Joined: Jan 2005
Posts: 10,133
Likes: 1
From: 42.4°N, 71.1°W
Originally Posted by Scrib
Do all the count functions in excel work for continuous ranges?


the problem is the comma separator makes the formula think you're into the criteria when you're still setting the range - not sure how to fix it.

You sure you can't do the whole range? What's between the cells?
Reply
Old Dec 15, 2005 | 02:30 PM
  #15  
JimmyCarter's Avatar
likes it raw
 
Joined: Jan 2005
Posts: 10,133
Likes: 1
From: 42.4°N, 71.1°W
Are the cells you want to count evenly spaced?
Reply
Old Dec 15, 2005 | 04:53 PM
  #16  
suXor's Avatar
Still trolling
 
Joined: Oct 2002
Posts: 4,623
Likes: 1
From: Wylie, Texas
Dude, you were right the first time.

=countif(range,criteria)
=COUNTIF(B2:B28,1)
=COUNTIF(B2:B28,2)
=COUNTIF(B2:B28,3)...etc

1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3
4
1
2
3


7
7
7
6
Reply
Old Dec 15, 2005 | 05:04 PM
  #17  
fuckleberry's Avatar
Banned
 
Joined: Nov 2005
Posts: 3,716
Likes: 0
Originally Posted by suXor
Dude, you were right the first time.

=countif(range,criteria)
=COUNTIF(B2:B28,1)
=COUNTIF(B2:B28,2)
=COUNTIF(B2:B28,3)...etc


www.readthefuckingoriginalpost.com
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Yumcha
Automotive News
70
Dec 7, 2020 05:39 PM
Yumcha
Automotive News
4
Aug 15, 2019 12:58 PM
08_UA7_Gr33k
Member Cars for Sale
13
Feb 11, 2016 02:17 PM
InFaMouSLink
Car Parts for Sale
6
Oct 27, 2015 06:52 PM
08_UA7_Gr33k
Member Cars for Sale
1
Sep 27, 2015 01:56 PM




All times are GMT -5. The time now is 04:10 PM.