Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default Wild Card for SUMIF criteria

I am trying to sum data in column M if the criteria in column F is met. The
criteria in F consists of 2 to 8 didget numbers such as 20, 2010, 20201, etc.
I want to sum any value in M when the criteria F is anything starting with
"20". Something to the effect of;

SUMIF(F:F,20*,M:M)

and I can not reduce the criteria in F down to 2 digets.

Thanks for any help.

Ronbo


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Wild Card for SUMIF criteria

You cannot use wildcards for numbers, only text

=SUMPRODUCT(--(LEFT(F1:F10000,2)="20"),M1:M10000)

works

note that you cannot use SUMPRODUCT with the whole column unless you have
Excel 2007 so you need to specify the range you are testing


--


Regards,


Peo Sjoblom


"Ronbo" wrote in message
...
I am trying to sum data in column M if the criteria in column F is met. The
criteria in F consists of 2 to 8 didget numbers such as 20, 2010, 20201,
etc.
I want to sum any value in M when the criteria F is anything starting with
"20". Something to the effect of;

SUMIF(F:F,20*,M:M)

and I can not reduce the criteria in F down to 2 digets.

Thanks for any help.

Ronbo




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default Wild Card for SUMIF criteria

Thanks a lot for the solution and the information.


"Peo Sjoblom" wrote:

You cannot use wildcards for numbers, only text

=SUMPRODUCT(--(LEFT(F1:F10000,2)="20"),M1:M10000)

works

note that you cannot use SUMPRODUCT with the whole column unless you have
Excel 2007 so you need to specify the range you are testing


--


Regards,


Peo Sjoblom


"Ronbo" wrote in message
...
I am trying to sum data in column M if the criteria in column F is met. The
criteria in F consists of 2 to 8 didget numbers such as 20, 2010, 20201,
etc.
I want to sum any value in M when the criteria F is anything starting with
"20". Something to the effect of;

SUMIF(F:F,20*,M:M)

and I can not reduce the criteria in F down to 2 digets.

Thanks for any help.

Ronbo





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
wild card in sumproduct BNT1 via OfficeKB.com Excel Worksheet Functions 3 November 26th 07 04:10 AM
Wild Card Search roy.okinawa Excel Worksheet Functions 4 January 30th 06 10:42 PM
wild card -- help with formula Michael A Excel Discussion (Misc queries) 10 January 8th 06 10:15 AM
Wild card * Herman Excel Worksheet Functions 0 October 21st 05 01:39 PM
Wild Card and Dates hkslater Excel Worksheet Functions 2 November 12th 04 09:16 PM


All times are GMT +1. The time now is 06:31 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"