Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
KD KD is offline
external usenet poster
 
Posts: 41
Default Sumproduct and wildcard

The data in my sheet is like:

Column A Column B
1 4602546wx
0 4615648dp
1 455586wd
1 465565ab

and it is a huge data

I want to count all the '1's where they have column B starting with 46.

Any help on how can I ahieve this by using wildcard would be greatly
appreciated.

KD.



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Sumproduct and wildcard

=SUMPRODUCT(--(A1:A1000="1"),--(LEFT(B1:B1000,2)="46"))

If 1s are numbers (not TEXT) then:

=SUMPRODUCT(--(A1:A1000=1),--(LEFT(B1:B1000,2)="46"))


"kd" wrote:

The data in my sheet is like:

Column A Column B
1 4602546wx
0 4615648dp
1 455586wd
1 465565ab

and it is a huge data

I want to count all the '1's where they have column B starting with 46.

Any help on how can I ahieve this by using wildcard would be greatly
appreciated.

KD.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sumproduct and wildcard

No need to test for 1 if it is just 1 and 0

=SUMPRODUCT(--(LEFT(B1:B1000,2)="46"),A1:A1000)

a tad more efficient

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Toppers" wrote in message
...
=SUMPRODUCT(--(A1:A1000="1"),--(LEFT(B1:B1000,2)="46"))

If 1s are numbers (not TEXT) then:

=SUMPRODUCT(--(A1:A1000=1),--(LEFT(B1:B1000,2)="46"))


"kd" wrote:

The data in my sheet is like:

Column A Column B
1 4602546wx
0 4615648dp
1 455586wd
1 465565ab

and it is a huge data

I want to count all the '1's where they have column B starting with 46.

Any help on how can I ahieve this by using wildcard would be greatly
appreciated.

KD.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Sumproduct and wildcard

=SUMIF(B:B,"46*",A:A)


"kd" wrote:

The data in my sheet is like:

Column A Column B
1 4602546wx
0 4615648dp
1 455586wd
1 465565ab

and it is a huge data

I want to count all the '1's where they have column B starting with 46.

Any help on how can I ahieve this by using wildcard would be greatly
appreciated.

KD.



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
Sumproduct + wildcard Saintsman Excel Worksheet Functions 3 January 12th 07 02:38 PM
SUMPRODUCT WITH WILDCARD Mark Excel Discussion (Misc queries) 5 March 12th 06 05:20 PM
SumProduct w/WildCard briank Excel Worksheet Functions 4 February 24th 06 11:23 PM
wildcard in sumproduct? cjjoo Excel Worksheet Functions 2 October 17th 05 01:08 PM
Sumproduct Wildcard RB Excel Discussion (Misc queries) 6 May 17th 05 04:27 AM


All times are GMT +1. The time now is 07:41 AM.

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

About Us

"It's about Microsoft Excel"