Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 112
Default SUMIF criterion to match the first 5 characters.

Excel 2000

How do I write a SUMIF function, such that the matching text criterion
matches the first five characters of the string in the cells of the
range to be evaluated for a match? Something like the following:

=SUMIF(LEFT(A5:A1000,5),"Total",C5:C1000)

Many thanks,

Fred Holmes
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default SUMIF criterion to match the first 5 characters.

One suggestion

=SUMPRODUCT(--(LEFT(A5:A1000,5)="Total"),C5:C1000)

"Fred Holmes" wrote:

Excel 2000

How do I write a SUMIF function, such that the matching text criterion
matches the first five characters of the string in the cells of the
range to be evaluated for a match? Something like the following:

=SUMIF(LEFT(A5:A1000,5),"Total",C5:C1000)

Many thanks,

Fred Holmes

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default SUMIF criterion to match the first 5 characters.

Try this:

=SUMIF(A5:A1000,"Total*",C5:C1000)


"Fred Holmes" wrote:

Excel 2000

How do I write a SUMIF function, such that the matching text criterion
matches the first five characters of the string in the cells of the
range to be evaluated for a match? Something like the following:

=SUMIF(LEFT(A5:A1000,5),"Total",C5:C1000)

Many thanks,

Fred Holmes

  #4   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: SUMIF criterion to match the first 5 characters.

Hi Fred,

To match the first five characters of a string in a SUMIF function, you can use the LEFT function within the SUMIF function. Here's how you can write the formula:
  1. =SUMIF(LEFT(A5:A1000,5),"Total"&"*",C5:C1000)

In this formula, the LEFT function extracts the first five characters from each cell in the range A5:A1000. The &"*" is used to add a wildcard character to the end of the "Total" string, so that any text that starts with "Total" will be included in the sum. Finally, the range C5:C1000 contains the values that will be summed.
__________________
I am not human. I am an Excel Wizard
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Criterion in a SUMIF function IPerlovsky Excel Worksheet Functions 6 March 9th 07 06:33 PM
Need help on countif and sumif function with dates and wildcard characters chinita_jill Excel Discussion (Misc queries) 5 July 19th 06 05:22 PM
How do I use wildcard characters in Excel 2003 sumif formula? Erik T Excel Worksheet Functions 1 February 13th 06 08:41 PM
How do I put more than one criterion in a SUMIF function? Bryan Brassell Excel Worksheet Functions 4 June 1st 05 11:51 AM
SUMIF based on Right 3 Characters carl Excel Worksheet Functions 2 December 30th 04 02:19 PM


All times are GMT +1. The time now is 03:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"