simplify a vlookup formula

Kerryx

Well-known Member
Joined
May 6, 2016
Messages
718
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi just wondering if anyone would have any ideas on simplifying this formula

=IF(Leaderboard!$C88="","",SUM(VLOOKUP(Entries_by_Name!$C88,All_Football_Tables!$C$3:$Y$22,14,FALSE)+VLOOKUP(Entries_by_Name!$D88,All_Football_Tables!$C$3:$Y$22,14,FALSE)+VLOOKUP(Entries_by_Name!$E88,All_Football_Tables!$C$3:$Y$22,14,FALSE)+VLOOKUP(Entries_by_Name!$F88,All_Football_Tables!$C$3:$Y$22,14,FALSE)+VLOOKUP(Entries_by_Name!$G88,All_Football_Tables!$C$25:$Y$48,14,FALSE)+VLOOKUP(Entries_by_Name!$H88,All_Football_Tables!$C$25:$Y$48,14,FALSE)+VLOOKUP(Entries_by_Name!$I88,All_Football_Tables!$C$25:$Y$48,14,FALSE)+VLOOKUP(Entries_by_Name!$J88,All_Football_Tables!$C$25:$Y$48,14,FALSE)+VLOOKUP(Entries_by_Name!$K88,All_Football_Tables!$C$52:$Y$75,14,FALSE)+VLOOKUP(Entries_by_Name!$L88,All_Football_Tables!$C$52:$Y$75,14,FALSE)+VLOOKUP(Entries_by_Name!$M88,All_Football_Tables!$C$52:$Y$75,14,FALSE)+VLOOKUP(Entries_by_Name!$N88,All_Football_Tables!$C$78:$Y$101,14,FALSE)+VLOOKUP(Entries_by_Name!$O88,All_Football_Tables!$C$78:$Y$101,14,FALSE)+VLOOKUP(Entries_by_Name!$P88,All_Football_Tables!$C$78:$Y$101,14,FALSE)))

https://unsee.cc/7ed2f5b7/
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Completely untested so test thoroughly

Does this work?

=IF(Leaderboard!$C88="","",
SUMPRODUCT((Entries_by_Name!$C88:$F88,All_Football_Tables!$C$3:$Y$22,14,FALSE))+
SUMPRODUCT((Entries_by_Name!$G88:$J88,All_Football_Tables!$C$25:$Y$48,14,FALSE))+
SUMPRODUCT((Entries_by_Name!$K88:$M88,All_Football_Tables!$C$52:$Y$75,14,FALSE))+
SUMPRODUCT((Entries_by_Name!$N88:$P88,All_Football_Tables!$C$78:$Y$101,14,FALSE)))
 
Last edited:
Upvote 0
no doesn't seem to work getting a Value error
 
Upvote 0
There's prob text in the ranges, SUMPRODUCT doesnt like a range that consists of numbers and text.
 
Upvote 0
Correct, the Entries by names sheet contains the teams selected by each entry and the All Football Tables sheet contains the leage tables with the points got each month.
 
Upvote 0
How about:

=IF(Leaderboard!$C88="","",SUMPRODUCT(SUMIF(All_Football_Tables!$C$3:$C$22,Entries_By_Name!$C88:$P88,All_Football_Tables!$P$3:$P$22)))
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,064
Members
449,090
Latest member
fragment

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