Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Excel Question


You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

Excel Question
Reply
 
Thread Tools
Old 08-01-2012, 19:59   #1
LSainsbury
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
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
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.
LSainsbury is offline   Reply With Quote
Advertisement
Old 08-01-2012, 20:01   #2
gazzae
cf.mega poster
spankthemonkey Champion
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Sumif

On phone so can't be more detailed.
gazzae is offline   Reply With Quote
Old 08-01-2012, 20:25   #3
LSainsbury
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
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
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.
LSainsbury is offline   Reply With Quote
Old 08-01-2012, 20:31   #4
progers
Pete
 
progers's Avatar
 
Join Date: Jan 2004
Location: Nuneaton
Services: Broadband L30 ~ TV XL & V+ ~ Phone XL
Posts: 578
progers has much to be proud ofprogers has much to be proud ofprogers has much to be proud ofprogers has much to be proud ofprogers has much to be proud ofprogers has much to be proud ofprogers has much to be proud ofprogers has much to be proud ofprogers has much to be proud ofprogers has much to be proud of
Re: Excel Question

=COUNTIF(A1:A28,"A") should do the trick
progers is offline   Reply With Quote
Old 08-01-2012, 20:44   #5
LSainsbury
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
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
Re: Excel Question

Quote:
Originally Posted by progers View Post
=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.
LSainsbury is offline   Reply With Quote
Old 09-01-2012, 17:28   #6
cookie_365
Double-Choc
 
cookie_365's Avatar
 
Join Date: Mar 2004
Location: Brighton
Posts: 2,464
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
Re: Excel Question

Yes, SUMIF is where you add -rather than count- numbers together that match certain criteria.
__________________

cookie_365 is offline   Reply With Quote
Old 09-01-2012, 19:13   #7
gazzae
cf.mega poster
spankthemonkey Champion
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: Excel Question

Doh my fault for not reading the op properly
gazzae is offline   Reply With Quote
Old 10-01-2012, 16:23   #8
cookie_365
Double-Choc
 
cookie_365's Avatar
 
Join Date: Mar 2004
Location: Brighton
Posts: 2,464
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
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
__________________

cookie_365 is offline   Reply With Quote
Old 04-03-2012, 17:03   #9
LSainsbury
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
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
Re: Excel Question

Quote:
Originally Posted by progers View Post
=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.
LSainsbury is offline   Reply With Quote
Old 04-03-2012, 17:14   #10
qasdfdsaq
cf. mega noob
 
qasdfdsaq's Avatar
 
Join Date: Aug 2004
Posts: 6,918
qasdfdsaq has a bronze arrayqasdfdsaq has a bronze arrayqasdfdsaq has a bronze array
qasdfdsaq has a bronze arrayqasdfdsaq has a bronze arrayqasdfdsaq has a bronze arrayqasdfdsaq has a bronze arrayqasdfdsaq has a bronze arrayqasdfdsaq has a bronze array
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
qasdfdsaq is offline   Reply With Quote
Old 04-03-2012, 21:19   #11
cookie_365
Double-Choc
 
cookie_365's Avatar
 
Join Date: Mar 2004
Location: Brighton
Posts: 2,464
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
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
__________________

cookie_365 is offline   Reply With Quote
Old 05-03-2012, 18:08   #12
LSainsbury
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
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
LSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronzeLSainsbury is cast in bronze
Re: Excel Question

Quote:
Originally Posted by cookie_365 View Post
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.
LSainsbury is offline   Reply With Quote
Old 05-03-2012, 18:21   #13
colin25
mallemaroking
 
colin25's Avatar
 
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
colin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronze
colin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronzecolin25 is cast in bronze
Re: Excel Question

Quote:
Originally Posted by LSainsbury View Post
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.
colin25 is offline   Reply With Quote
Old 06-03-2012, 11:49   #14
cookie_365
Double-Choc
 
cookie_365's Avatar
 
Join Date: Mar 2004
Location: Brighton
Posts: 2,464
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
Re: Excel Question

Quote:
Originally Posted by LSainsbury View Post
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
__________________

cookie_365 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Google Search




All times are GMT. The time now is 00:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.

(server6.cableforum.co.uk)

SEO by vBSEO 3.3.2