View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre Ron Coderre is offline
external usenet poster
 
Posts: 698
Default Formula / Counting

Try this ARRAY FORMULA (committed with Ctrl+Shift+Enter, instead of just Enter:

=SUM(IF(RIGHT(A1:G44,1)="L",--SUBSTITUTE(A1:G44,"L","")))
=SUM(IF(RIGHT(A1:G44,1)="B",--SUBSTITUTE(A1:G44,"B","")))

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Anna" wrote:

I have the following range A1:G44 and the values in cells:

A2 = 4B
A5 = 8L
B2 = 1L
A10 = 1B
C10 = 0.5L

I need to sum the L's and the B's separately so that in this case there
would be a total of 5Bs and 9.5Ls.

Can this be accomplished and if so, how?