Help with Sorting I guess???

zendog1960

Active Member
Joined
Sep 27, 2003
Messages
459
Office Version
  1. 2019
Platform
  1. Windows
Here is what I would like to do. I play in a softball league which plays 7 weeks per season. Each Week we play a doubleheader. I want to create team specific stats thus standings but having trouble figuring out how to make the following example work:

Excel Workbook
ABCDEFGHIJK
1VisitorsHomeScore**PeriniRuns ForRuns AgainstWinLoss
2Base KnocksPerini57**Week 1 G1****
3PeriniBase Knocks1218**Week 1 G2****
4MGM MirageTough Times138*******
5Tough TimesMGM Mirage225*******
Sheet4


The worksheet shows the first week of the schedule. As shown the team Perini was the home team the first game of the double header then the visitor in the second game. I could make a direct reference to the cell D2 for H2 but that isn't always the case as Perini next week might be Visitors first. Having said that I guess I need some kind of Look up function to first find out if Perini is the Home or Visitor for the first game them copy the appropriate score to the teams stat columns in the range H2:I3.

When finished, the Team Stat Area Should Look Like this:

Excel Workbook
ABCDEFGHIJK
1VisitorsHomeScore**PeriniRuns ForRuns AgainstWinLoss
2Base KnocksPerini57**Week 1 G175X*
3PeriniBase Knocks1218**Week 1 G21218*X
4MGM MirageTough Times138*******
5Tough TimesMGM Mirage225*******
Sheet4


Any and all help with this would be greatly apprciated. I have pulled more hair out than I am able to grow back on this so herry before I go bald! LOL

Thanks
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Any thoughts on this problem? I have tried searching for some answers on this site but have failed to come up with any solutions....
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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