LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 84
Default Counting numbers with a letter attached in excel


Thanks Gary, Max & Kassie Problem is fixed as below for anyone who is
interested.........

Problem:-
Sheet 1 Column A1 to A10 contains user input of say

10S
5S
6A
7B
25C
7C

the letter after the number gives the number a unique identifier.
However some cells may be blank !!(empty)
How do I count these up so they become a number only on Sheet 2 in a
column

Bats Total 7
Cricket Balls 32
Antenna 6
Seats 15

Answer which works for me from Gary & Max

in B1 enter:
=RIGHT(A1,1) and copy down
In C1 enter:
=IF(LEN(A1)<2,0,IF(ISERROR(LEFT(A1,LEN(A1)-1)*1),0,LEFT(A1,LEN(A1)-1)*1))

Then the sum formulae a

=SUMPRODUCT(--(B1:B6="A"),C1:C6)
=SUMPRODUCT(--(B1:B6="B"),C1:C6)
=SUMPRODUCT(--(B1:B6="S"),C1:C6)
=SUMPRODUCT(--(B1:B6="C"),C1:C6)

Thanks again for the help

 
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
Counting groups of exact numbers in a huge list (column) pgiessler Excel Discussion (Misc queries) 1 August 16th 06 05:00 PM
Running Excel 2000 VBA Application on Excel 2003 Excel Worksheet Functions 0 August 8th 06 06:04 PM
FedEx tracking numbers in Excel Adam J Excel Discussion (Misc queries) 0 July 24th 06 07:34 PM
How do I change format of page numbers to letters in Excel? DonnaGoof Excel Discussion (Misc queries) 2 November 15th 05 07:35 PM
Can Excel evaluate a series of numbers Chad Sellers Excel Discussion (Misc queries) 6 November 11th 05 10:42 AM


All times are GMT +1. The time now is 11:54 PM.

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

About Us

"It's about Microsoft Excel"