vlookup with sum

jdgel817

New Member
Joined
Sep 25, 2014
Messages
7
I am trying to do a scorecard based on number of drinks consumed per week. Drinks consumed are entered daily the Week Total would keep a running point total. As drinks are consumed the total points would decrease. I was using a vlookup with a sum shown below:

=IFERROR(VLOOKUP(SUM(E8:K8),Scoring!B28:C34,2,FALSE),"0")

Here is the problem--with this formula the Week Total always starts with a 7 (i.e.sum of E8:K8 is recognized as zero and returns 7 points). How do I keep the same logic, but start the Week Total showing blank or zero?


Mon through Sun are cells E8:K8
MonTuesWedThurFriSatSunWeek Total
# of drinks

<tbody>
</tbody>

Scoring Worksheet
# of DrinksPoints Earned
0
7
16
24
33
42
51
>50

<tbody>
</tbody>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try this maybe:

=IF(COUNT(E8:K8)=0,0,IFERROR(VLOOKUP(SUM(E8:K8),Scoring!$B$28:$C$33,2,0),0))
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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