Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2015, 09:23 AM
PDGood PDGood is offline Using Right and Len formulas together Windows 7 32bit Using Right and Len formulas together Office 2010 32bit
Novice
Using Right and Len formulas together
 
Join Date: Nov 2015
Posts: 2
PDGood is on a distinguished road
Default 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!
Reply With Quote
  #2  
Old 11-18-2015, 09:43 AM
Kevin@Radstock Kevin@Radstock is offline Using Right and Len formulas together Windows 10 Using Right and Len formulas together Office 2016
Office 365
 
Join Date: Feb 2012
Posts: 94
Kevin@Radstock is on a distinguished road
Default

Hi PDGood

Try the following.

=SUMPRODUCT(--(RIGHT(A1:A12,1)="A"))

Sorry missed the second part.

=SUMPRODUCT(--(RIGHT(A1:A12,1)="A"),B1:B12)
Reply With Quote
  #3  
Old 11-18-2015, 09:49 AM
PDGood PDGood is offline Using Right and Len formulas together Windows 7 32bit Using Right and Len formulas together Office 2010 32bit
Novice
Using Right and Len formulas together
 
Join Date: Nov 2015
Posts: 2
PDGood is on a distinguished road
Default

Excellent! Thanks! That is brilliant!!
Reply With Quote
  #4  
Old 11-18-2015, 09:51 AM
Kevin@Radstock Kevin@Radstock is offline Using Right and Len formulas together Windows 10 Using Right and Len formulas together Office 2016
Office 365
 
Join Date: Feb 2012
Posts: 94
Kevin@Radstock is on a distinguished road
Default

I missed the second part but posted in the same reply.
Reply With Quote
  #5  
Old 11-20-2015, 06:50 AM
Debaser's Avatar
Debaser Debaser is offline Using Right and Len formulas together Windows 7 64bit Using Right and Len formulas together Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

You can also use:
=COUNTIF(A1:A12,"*A")

and

=SUMIF(A1:A12,"*A",B1:B12)
Reply With Quote
Reply



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
Using Right and Len formulas together Formulas in a different language poobear Excel 2 09-18-2011 04:35 AM
Using Right and Len formulas together IF Formulas mizzamzz Excel 1 07-08-2010 02:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:51 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft