#1
|
|||
|
|||
Using Right and Len formulas together
This is a simplified version of my spreadsheet in order to explain what I'm trying to find:
Column A has the following info going from A1 to A12: W-80085-B W-79989-A W-80031-A W-80032-A W-80033-A W-80043-A W-79935-B W-79981-A W-80114-A W-79981-S W-80114-S W-80084-B I'm looking for a formula to put in C1 that will tell me how many of these end in the letter A. In a separate instance there will be various quantities in B1:B12. In that case I'm looking for another formula that will find each cell that ends in the letter A and then add all the quantities in the neighboring B cells. In other words, If cells 2,3,4,5,6, 8, and 9 in end A then I need the total of the info in B2,B3,B4,B5,B6,B8 and B9. Thanks! |
#2
|
|||
|
|||
Hi PDGood
Try the following. =SUMPRODUCT(--(RIGHT(A1:A12,1)="A")) Sorry missed the second part. =SUMPRODUCT(--(RIGHT(A1:A12,1)="A"),B1:B12) |
#3
|
|||
|
|||
Excellent! Thanks! That is brilliant!!
|
#4
|
|||
|
|||
I missed the second part but posted in the same reply.
|
#5
|
||||
|
||||
You can also use:
=COUNTIF(A1:A12,"*A") and =SUMIF(A1:A12,"*A",B1:B12) |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
formulas | MSA5455 | Excel | 3 | 12-19-2014 01:50 AM |
Help with IF or ELSE Formulas | tsaladyga | Excel | 4 | 07-23-2014 09:04 AM |
Need help with formulas please | paul_pearson | Excel | 0 | 03-20-2013 06:51 AM |
Formulas in a different language | poobear | Excel | 2 | 09-18-2011 04:35 AM |
IF Formulas | mizzamzz | Excel | 1 | 07-08-2010 02:32 AM |