SUMIF(VLOOKUP...) Help

Bhugz

New Member
Joined
Jul 13, 2011
Messages
11
Hey folks,
I have been put in charge with doing my teams indoor cricket stats after each game. I have used a =SUM(VLOOKUP... combo for the first 2 games but have ran into a problem. I have each game in a separate sheet within the same workbook, but I get a #N/A error when using the formula combo (see below) What formula combo can I use to fix this?
BATTING STATISTICS
Player Innings Runs

Bugs 2 31
Danny 2 21
Umesh 2 3
Nick 1 #N/A
Jeshal 2 20
Tyrone 1 #N/A
Divyang 1 #N/A


Thanks heaps
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Can you post the actual VLOOKUP formula you are using because from your sample data it isn't clear to me what you are trying to do. It would be a good idea to use one of the html makers (there's a link at the top of the forum) to post some sample data so your problem is clearly presented.
 
Upvote 0
Depends on your version of Excel you can wrap your formula with IFERROR(Excel 07/10) or ISERROR(Excel <07) but as Firefly2012 suggestes yif your post your data +formula there could be a better solution
 
Upvote 0
Can you post the actual VLOOKUP formula you are using because from your sample data it isn't clear to me what you are trying to do. It would be a good idea to use one of the html makers (there's a link at the top of the forum) to post some sample data so your problem is clearly presented.

The formula I am using is =SUM(VLOOKUP(M5,'Game 1'!A:I,2,FALSE),(VLOOKUP(M5,'Game 2'!A:I,2,FALSE)))

Game 1

HTML:
Player	Runs	Balls Faced	
Bugs	13	14	
Danny	9	13	
Umesh	-3	8	
Nick	4	10

Game 2

HTML:
Player	Runs	Balls Faced
Bugs	18	13	
Nipun	13	13	
Shiv	-6	12	
Umesh	6	12

Overall Stats
HTML:
Player	Innings	Runs	Balls Faced
			
Bugs	2	31	27
Danny	2	21	25
Umesh	2	3	20
Nick	1	#N/A	#N/A

For Innings in Overall stats I am using =COUNT(VLOOKUP(M5,'Game 1'!A:I,2,FALSE),(VLOOKUP(M5,'Game 2'!A:I,2,FALSE))) which works fine.
 
Upvote 0
Try like this:
Make a list of your sheets(in this example in cells I2 and I3 you can do as many as you need and then):
Excel Workbook
ABC
1PlayerRunsBalls Faced
2Bugs1314
3Danny913
4Umesh-38
5Nick410
Game 1


Excel Workbook
ABC
1PlayerRunsBalls Faced
2Bugs1813
3Nipun1313
4Shiv-612
5Umesh612
Game 2


Excel Workbook
ABCDEFGHI
1PlayerInningsRunsBalls Faced****List of Sheets
2Bugs23127****Game 1
3Danny2913****Game 2
4Umesh2320*****
5Nick1410*****
6Nipun*1313*****
7Shiv*-612*****
Overall Status


Drag formulas down.
How the Innings are being counted?(is this cricket?basebal?)
Advice: do not use full column ranges as this very unefficient way and you probably do not need range A:I if you column index number for VLOOKUP is 2.
 
Upvote 0
Cool, will try that. Yeah the Innings refers to the number of games played. It is indoor cricket.

So just to clarify, In the list of sheets column, for Bugs in I2 I'd have Game 1, Game 2, Game 3... etc.
 
Upvote 0
The "list" is a Named Range.
You can have it in any part of your work book and as many as you need and they are names of your worksheets.
Please see below the numbers of Innits formula:
Excel Workbook
ABCDEFGHI
1PlayerInningsRunsBalls Faced****List of Sheets
2Bugs23127****Game 1
3Danny1913****Game 2
4Umesh2320*****
5Nick1410*****
6Nipun11313*****
7Shiv1-612*****
Overall Status
 
Upvote 0
Wish I could understand what you did. Sorry I'm a noob when it comes to advanced excel formulas.
 
Upvote 0
Made sense of it all.

Thanks heaps for your help. One more question though.

What formula would I use if I wanted to add the highest and lowest score for each player?
 
Upvote 0
Is anyone able to help me with the formula for getting max and min values based on the above posts, please.


Thanks
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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