ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Limelight Media - ExcelTip.com Books > F1 Get the most out of Excel Formulas & Functions

Notices

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-24-2007, 01:23 PM
ChrisBbacon ChrisBbacon is offline
Registered User
 
Join Date: 24 Jan 2007
Posts: 11
ChrisBbacon is on a distinguished road
Sort numbers and letters, and count each

My cells contain such data as this:

Cell 1 Cell 2
1a2b4c8d1e13f 1a4b3c2d4e5f

i.e. its a manual formula: 1 of a, 2 of b, 8 of d

I need to add up how many of a, how many of b, how many of c etc. to produce a total.

i.e. above there are 8 d's, and 2 d's, = 10 d's in total.

Can anyone help me with a formula to do this? I tried the MID function but it didn't work for the random cells that had two digits before some of the letters(e.g. 13f)


Thankful for ANY help


Chris
Reply With Quote
  #2  
Old 01-24-2007, 01:40 PM
Carim Carim is offline
Forum Guru
 
Join Date: 07 Apr 2006
Posts: 4,001
Carim is on a distinguished road
Hi,
Have you tried Data TexttoColumns ...?
__________________
HTH
Carim


Top Excel Links
Reply With Quote
  #3  
Old 01-24-2007, 02:00 PM
Carim Carim is offline
Forum Guru
 
Join Date: 07 Apr 2006
Posts: 4,001
Carim is on a distinguished road
Hi again,

See attached possibility ...
Attached Files
File Type: zip ChrisBacon.zip (5.1 KB, 51 views)
__________________
HTH
Carim


Top Excel Links
Reply With Quote
  #4  
Old 01-24-2007, 03:08 PM
ChrisBbacon ChrisBbacon is offline
Registered User
 
Join Date: 24 Jan 2007
Posts: 11
ChrisBbacon is on a distinguished road
thx

Any chance you could explain what you did to me?

Also, I've just checked and the codes actually start with a number (which is irrelevant at this point) and instead, the number of a's, b's is indicated by the number after the letter.

i.e. 2a3b8c2d18e3f9g8k13

Can you help me change the formulas to get the same result?

and what if the data is shorter than others. e.g. just 2a3b8c2d18e
i keep getting VALUE error in the cell.


Thx

Chris

Last edited by ChrisBbacon; 01-24-2007 at 03:12 PM.
Reply With Quote
Reply

Bookmarks

New topics in F1 Get the most out of Excel Formulas & Functions


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

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -4. The time now is 04:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0