sum of numbers behind a specific letter

IvoOvermars

New Member
Joined
Aug 6, 2010
Messages
12
Hi,

It's been a while since I did anything with excel and VBA so I am a bit rusty.

I have sheet with data in wich the value always consists of two digits. The first is always a letter (V, Z, T, S) and the second is always a number ranging from 1 to 9. So cells are filled with V1, T6, V4, S9 etcetc. On a different sheet I would like the sum of all numbers behind V, the sum of all numbers behind S etcetc. I know I have build a similar thing years ago but I can't find that file :s and I can't figure out how I did this back then. Can anyone help me or point me in the right direction?

Kind regards,

Ivo
 

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.
Try this:

=SUM(IF(LEFT(Sheet1!A1:A1000)="T",RIGHT(Sheet1!A1:A1000)+0))

Confirm with CTRL-SHIFT-ENTER rather than just Enter.

Substitute the "T" with your other letters for the other formulas.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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