I need help with couple things clear data when you change validation and find monday night game teams

TLS49

Board Regular
Joined
Nov 26, 2019
Messages
132
Office Version
  1. 365
Platform
  1. Windows
I need help with two things one when you change F1. I want clear C2:C18 and G2:G18

I also need help getting name teams names in E 21 and E23 for Monday night teams

Book1
ABCDEFGHI
1WEEK15
2GAMESDAYSROAD TEAM PICK ROAD TEAMSROAD SCORESVSHOME TEAM PICKHOME TEAMSHOME TEAM SCORES
31ThursdayJETS21VSRAVENS42
42Sunday*SEAHAWKS30VSPANTHERS24
53Sunday*PATRIOTS34VSBENGALS13
64SundayBUCCANEERS38VS*LIONS17
75SundayBEARS13VS*PACKERS21
86SundayBRONCOS3VS*CHIEFS23
97SundayDOLPHINS20VS*GIANTS36
108Sunday*TEXANS24VSTITANS21
119Sunday*BILLS17VSSTEELERS10
1210Sunday*EAGLES37VSREDSKINS27
1311Sunday*BROWNS24VSCARDINALS38
1412SundayJAGUARS20VS*RAIDERS16
1513SundayRAMS21VS*COWBOYS44
1614SundayFALCONS29VS*49ERS22
1715Sunday*VIKINGS39VSCHARGERS10
1816MondayCOLTS7VS*SAINTS34
19
20AVERAGES FOR MONDAY NIGHT TEAMS
21MY MONDAY NIGHT GAME TOTAL POINTSPUT ROAD TEAM HERE MONDAY NIGHT#N/AI need help with two things one when you change F1. I want clear C2:C18 and G2:G18
22
23MONDAY NIGHT TOTAL POINTS PUT HOME TEAM HERE MONDAY NIGHT#N/AI also need help getting name teams names in E 21 and E23 for Monday night teams
24
25DIFFERENCE TOTAL#N/A
PICK THEM
Cell Formulas
RangeFormula
D3:D18D3=IFERROR(INDIRECT("'"&$F$1&"'!D" &1+A3),"")
E3:E18E3=IFERROR(INDEX(INPUT_SCORES!$B$2:$R$33,MATCH(D3,TEAMS,0),MATCH($F$1,WEEK_PLAYED,0)),0)
H3:H18H3=IFERROR(INDIRECT("'"&$F$1&"'!G"&1+A3),"")
I3:I18I3=IFERROR(INDEX(INPUT_SCORES!$B$2:$R$33,MATCH(H3,TEAMS,0),MATCH($F$1,WEEK_PLAYED,0)),"")
B3:B18B3=IFERROR(INDIRECT("'"&$F$1&"'!B"&1+A3),"")
E21, E23E21=VLOOKUP(D21,'AVERAGE POINTS BY TEAMS'!$B$2:$B$33,2,0)
B23B23=IF(B21="","",SUMPRODUCT(((DAYS)="Monday")*1,ROAD_SCORES)+SUMPRODUCT(((DAYS)="Monday")*1,HOME_TEAM_SCORES))
B25B25=IF(B21="","",(B21-B23))
E25E25=SUM(E21,E23)
Cells with Data Validation
CellAllowCriteria
F1:I1List=WEEKS



Thanks You very much
TLS49
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi, I see changes in your sheet :biggrin:

Put the follow code in PICK THEM
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
Set KeyCells = Range("F1")
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
           Is Nothing Then
Range("C3:C18,G3:G18").ClearContents
End If
End Sub

Put this formula in E21 =INDEX($B$3:$I$18,MATCH("Monday",DAYS,0),3)
Put this formula in E23 =INDEX($B$3:$I$18,MATCH("Monday",DAYS,0),7)

DAYS name is ='PICK THEM'!$B$3:$B$18 ...but you have this ready
 
Upvote 0
What are you doing with the asterisc, in columns C and G?
and
What is the source data or parameter, for fill each asterics in both columns?
 
Upvote 0
i pick either side i think team go to win game with asterics

Thanks you very much
TLS49
 
Upvote 0

Forum statistics

Threads
1,215,325
Messages
6,124,252
Members
449,149
Latest member
mwdbActuary

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