excel_novice10

New Member
Joined
Jun 15, 2019
Messages
2
Hello,

I am first time poster looking for help with a formula which uses a sumproduct and vlookups:

=SUMPRODUCT((VLOOKUP(__,__:__,{2,3,4,...},FALSE)>0)*VLOOKUP(__,__:__,{2,3,4,...},FALSE))


Here is a simple example of the formula in action:

https://i.imgur.com/i49xcNl.png


While the formula works with small datasets, Excel's formula character limit prevents it from being applied to larger data sets, as there are too many index column numbers. How should I work around the character limit if I have too many columns (over 1000)? What alternative formula would work more efficiently and accomplish the same objective? I don't have experience using Excel VBA, so any solutions in vanilla Excel would be helpful.


Thanks for your help!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Welcome to Mr Excel forum

Try

A
B
C
D
1
Person A​
Person B​
Person C​
2
x​
20​
0​
15​
3
y​
30​
5​
75​
4
z​
15​
45​
0​
5
6
7
x​
y​
z​
8
x​
35​
105​
15​
9
y​
35​
110​
60​
10
z​
20​
35​
60​

<tbody>
</tbody>


Formula in B8 copied across and down
=SUMIF(INDEX($B$2:$D$4,MATCH($A8,$A$2:$A$4,0),0),">0",INDEX($B$2:$D$4,MATCH(B$7,$A$2:$A$4,0),0))

Hope this helps

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,805
Messages
6,121,664
Members
449,045
Latest member
Marcus05

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