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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,215,387
Messages
6,124,633
Members
449,177
Latest member
Sousanna Aristiadou

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