Simplify Sumproduct, Multiple Entries

the.yangist

New Member
Joined
May 7, 2011
Messages
17
I have a bit of a problem. I'm using a spreadsheet on WordNet (a large SQL database turned to cells), but have a need for a special kind of function that I simply don't know.

I have been using SUMPRODUCT dominantly to sort the data as I've needed it, but now I'm in need of a single-method lookup.

Here's the gist:

A1:A100
B1:B4

In C1:C10, SUMPRODUCT(($A$1:$A$100=$B1)+($A$1:$A$100=$B2)+($A$1:$A$100=$B3)+($A$1:$A$100=$B4)...)

The issue is that I have 5000 B cells to look up.

There is a longer solution to my problem, but I was curious if an array formula was out there that could solve this matter more shortly.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
What exactly are you trying to do? I'm confused :confused:
 
Upvote 0
I have a bit of a problem. I'm using a spreadsheet on WordNet (a large SQL database turned to cells), but have a need for a special kind of function that I simply don't know.

I have been using SUMPRODUCT dominantly to sort the data as I've needed it, but now I'm in need of a single-method lookup.

Here's the gist:

A1:A100
B1:B4

In C1:C10, SUMPRODUCT(($A$1:$A$100=$B1)+($A$1:$A$100=$B2)+($A$1:$A$100=$B3)+($A$1:$A$100=$B4)...)

The issue is that I have 5000 B cells to look up.

There is a longer solution to my problem, but I was curious if an array formula was out there that could solve this matter more shortly.
Like this...

=SUMPRODUCT(--(ISNUMBER(MATCH($A$1:$A$100,$B$1:$B$4,0))))
 
Upvote 0
I'm checking a pretty involved dictionary database for matches to a frequency corpus.

The question is basically, "How many corpus entries match the following dictionary entries?" I can concatenate the criteria as I need to check them, but the SUMPRODUCT formula, itself, would be too long to check for 5000+ corpus values.
 
Upvote 0
Try this array entered with CTRL + SHIFT + ENTER

=SUM(COUNTIF(A1:A100,B1:B10))


edit..

Or without CTRL + SHIFT + ENTER

=SUMPRODUCT(COUNTIF(A1:A100,B1:B10))
 
Last edited:
Upvote 0
Does the MATCH function look for injections or surjections for whole arrays? How does that part work?
Book1
AB
113
225
339
4411
55_
66_
77_
88_
99_
1010_
Sheet1

=SUMPRODUCT(--(ISNUMBER(MATCH(A1:A10,B1:B4,0))))

=3

The 3 in column A matches the 3 in column B
The 5 in column A matches the 5 in column B
The 9 in column A matches the 9 in column B
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,610
Members
452,931
Latest member
The Monk

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top