How many digits and letters a cell has; change small letters to capital.

snd

New Member
Joined
Jan 24, 2010
Messages
44
Excel 2007
Row\Col
A
B
C
D
E
F
G
1
Original Data​
New Data​
Digits​
Letters​
2
XYz123456XYZ123456
6​
3​
3
aB1234567AB1234567
7​
2​
4
123456780​
123456780​
9​
0​
5
6
7
8
Notes:
9
- Letters + Digits = 9 characters, always.
10
- Number of digits are always between 6 and 9 (inclusive).
11
(so, number of letters are always between zero and three).
12
- Letters come before numbers.
13
14
1- I need to change the small letters to capital.
15
2- I need to know how many numbers, and how many letters (if any) in each cell.
16
17
Notes:
18
Please, worksheet functions only.

<tbody>
</tbody>
Sheet: Sheet1

<tbody>
</tbody>

Thank you guys for helping me out.:)
 
Thank you Mike very much. If I may ask another one: Where can I find more info about "Sumproduct". (didn't understand the zero before the MID Function).

The +0 was there to create an error if Mid returned a letter, but be a number if it returned a numeral (thanks to Excels automatic type conversions)
 
  • Like
Reactions: snd
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
... surely to capture all of the potential "numbers" it should have been:

=SUM(1-ISNUMBER(-MID(A1,{1,2,3,4,5,6,7,8,9},1)))

Hi edvwvw

snd specified in post #1

Code:
 ... number of letters are always between zero and three ...

so just {1,2,3} is enough in this case.
 
Upvote 0
I couldn't delete the above question that's why I'm replying. After I searched, now I understand, the +0 is just like the double minus sign (to convert Ts and Fs into 1s and 0s). Thanks a lot guys.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top