08-01-2012, 19:59
|
#1
|
|
cf.mega poster
Join Date: Sep 2003
Location: Near Hungerford, West Berkshire
Services: TV: Sky HD, Landline: BT,
Mobile: Orange, Internet: Quite Slow!
Posts: 6,586
|
Excel Question
Hi All,
Excel experts required!
I have a column in Excel which has the letter A or C. I want to count the number of A's and display as a total and the same for the C's.
Whats the formula for counting the A's and C's?
Thanks
__________________
Cheers,
Lee
Please take a look at my photography site and leave me some feedback.
|
|
|
08-01-2012, 20:01
|
#2
|
|
cf.mega poster
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
|
Sumif
On phone so can't be more detailed.
|
|
|
08-01-2012, 20:25
|
#3
|
|
cf.mega poster
Join Date: Sep 2003
Location: Near Hungerford, West Berkshire
Services: TV: Sky HD, Landline: BT,
Mobile: Orange, Internet: Quite Slow!
Posts: 6,586
|
Re: Excel Question
=SUMIF(B5:B144, "A")
Returns 0 - which is incorrect...
---------- Post added at 21:25 ---------- Previous post was at 21:10 ----------
From Excel Help:
Quote:
|
The range of cells that you want evaluated by criteria. Cells in each range must be numbers or names, arrays, or references that contain numbers. Blank and text values are ignored.
|
So it won't count the number of A's or C's....great. How else can I do this??
__________________
Cheers,
Lee
Please take a look at my photography site and leave me some feedback.
|
|
|
08-01-2012, 20:31
|
#4
|
|
Pete
Join Date: Jan 2004
Location: Nuneaton
Services: Broadband L30 ~ TV XL & V+ ~
Phone XL
Posts: 578
|
Re: Excel Question
=COUNTIF(A1:A28,"A") should do the trick
|
|
|
08-01-2012, 20:44
|
#5
|
|
cf.mega poster
Join Date: Sep 2003
Location: Near Hungerford, West Berkshire
Services: TV: Sky HD, Landline: BT,
Mobile: Orange, Internet: Quite Slow!
Posts: 6,586
|
Re: Excel Question
Quote:
Originally Posted by progers
=COUNTIF(A1:A28,"A") should do the trick
|
Ahh - brilliant. Worked a treat. Thanks!
__________________
Cheers,
Lee
Please take a look at my photography site and leave me some feedback.
|
|
|
09-01-2012, 17:28
|
#6
|
|
Double-Choc
Join Date: Mar 2004
Location: Brighton
Posts: 2,464
|
Re: Excel Question
Yes, SUMIF is where you add -rather than count- numbers together that match certain criteria.
|
|
|
09-01-2012, 19:13
|
#7
|
|
cf.mega poster
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
|
Re: Excel Question
Doh my fault for not reading the op properly
|
|
|
10-01-2012, 16:23
|
#8
|
|
Double-Choc
Join Date: Mar 2004
Location: Brighton
Posts: 2,464
|
Re: Excel Question
 wasn't having a needle or anything like that.
I was just posting for any Excel newbies who might stumble on the thread in future with a similar question
|
|
|
04-03-2012, 17:03
|
#9
|
|
cf.mega poster
Join Date: Sep 2003
Location: Near Hungerford, West Berkshire
Services: TV: Sky HD, Landline: BT,
Mobile: Orange, Internet: Quite Slow!
Posts: 6,586
|
Re: Excel Question
Quote:
Originally Posted by progers
=COUNTIF(A1:A28,"A") should do the trick
|
Bump!
How do I do this for two criteria?
Say - column A1:A28, "A" and column B1: B28 contains "D" - I want to count this as 1. COUNTIF seems to add the up making 2!
__________________
Cheers,
Lee
Please take a look at my photography site and leave me some feedback.
|
|
|
04-03-2012, 17:14
|
#10
|
|
cf. mega noob
Join Date: Aug 2004
Posts: 6,918
|
Re: Excel Question
Easiest way, make a third column C1:C28 that =1 if A[row]=A and B[row]=D.
__________________
Ultimate® SuperHub2™ Mod©:
N750 Simultaneous dual-band wireless (300+450)
5 Upgradeable antennas, dual-processor, 7 ports
Fully customizeable dd-wrt/openwrt routing engine
|
|
|
04-03-2012, 21:19
|
#11
|
|
Double-Choc
Join Date: Mar 2004
Location: Brighton
Posts: 2,464
|
Re: Excel Question
If you can't add extra columns, then you can use the bizarre function SUMPRODUCT:
=SUMPRODUCT((A1:A28=A)*(B1:B28="D"))
Yes, I know, ignore the words 'SUM' and 'PRODUCT' in the function name
|
|
|
05-03-2012, 18:08
|
#12
|
|
cf.mega poster
Join Date: Sep 2003
Location: Near Hungerford, West Berkshire
Services: TV: Sky HD, Landline: BT,
Mobile: Orange, Internet: Quite Slow!
Posts: 6,586
|
Re: Excel Question
Quote:
Originally Posted by cookie_365
If you can't add extra columns, then you can use the bizarre function SUMPRODUCT:
=SUMPRODUCT((A1:A28=A)*(B1:B28="D"))
Yes, I know, ignore the words 'SUM' and 'PRODUCT' in the function name 
|
Brilliant - exactly what I needed! Who would have thought wedding guest list planning was this exciting! This is probably the most complex thing my copy of Excel has had to do - ever!
__________________
Cheers,
Lee
Please take a look at my photography site and leave me some feedback.
|
|
|
05-03-2012, 18:21
|
#13
|
|
mallemaroking
Join Date: Jan 2010
Location: Edinburgh
Services: Sky Tv, BT infinity broadband - since 5 June 2013..oh, and a BT phone (BT infinityyyy and beyonddddd
Posts: 3,620
|
Re: Excel Question
Quote:
Originally Posted by LSainsbury
Brilliant - exactly what I needed! Who would have thought wedding guest list planning was this exciting! This is probably the most complex thing my copy of Excel has had to do - ever! 
|
lol..mind boggles
__________________
The opinions I express are not my own, I stole them, blame the other guy 
and as mentioned in a comment
Not helpful.Far better not to post if you cannot push matter forwards.
|
|
|
06-03-2012, 11:49
|
#14
|
|
Double-Choc
Join Date: Mar 2004
Location: Brighton
Posts: 2,464
|
Re: Excel Question
Quote:
Originally Posted by LSainsbury
Brilliant - exactly what I needed! Who would have thought wedding guest list planning was this exciting! This is probably the most complex thing my copy of Excel has had to do - ever! 
|
You're welcome
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 00:06.
|