Combine Formulas

VinceF

Board Regular
Joined
Sep 22, 2007
Messages
172
Office Version
  1. 2016
Platform
  1. Windows
Greetings Experts and Thank You in advance.
I'm trying to combine these two formulas without much sucess, assistance appreciated.

In E5 you'll see this formula to match the players in the column with the value from the other sheet "Player Quota History"
IF(Main!$B5="","",INDEX('Player Quota History'!D5:D12,MATCH(Main!$B5,'Player Quota History'!B5:B12,0)))
In G5 this formula reports the last value in the specific row.
LOOKUP(2,1/('Player Quota History'!D5:H5<>""),'Player Quota History'!D5:H5)

I'm going to attempt to show both sheets using Xl2bb

VinceF
Excel 2016

Sample.xlsx
BCDEFGH
3
4
5Larry41
6Moe
7Curly
8Pete
9Sam
10Joe
11Mike
12Bob
13
14
Main


Sample.xlsx
BCDEFGHI
3
4
5Bob341
6Curly21
7Joe57
8Larry46
9Mike1
10Moe9
11Pete58
12Sam27
13
14
15
16
17
Player Quota History
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi,

I'm unsure of what you're trying to achieve as the result(s), are you trying to get the Last score for each player?
Or, both the 1st and Last scores into 2 separate columns ?
 
Upvote 0
I'm sure my explanation was a bit confusing, I'll try to do better here.

This formula matches players name in a column and then reports a value from another column.
=IF(Main!$B5="","",INDEX('Player Quota History'!D5:D12,MATCH(Main!$B5,'Player Quota History'!B5:B12,0)))

This formula looks at a row and reports the last value in that row.
=LOOKUP(2,1/('Player Quota History'!D5:H5<>""),'Player Quota History'!D5:H5)

Both formulas work as needed but independently. I'd like to combine these two formulas into 1 cell to look something like this.
=IF(Main!$B5="","",INDEX('Player Quota History'!D5:D12,MATCH(Main!$B5,'Player Quota History'!B5:B12,0)))=LOOKUP(2,1/('Player Quota History'!D5:H5<>""),'Player Quota History'!D5:H5)

When I try to combine the formulas, it ask me to correct the formula to this... It actually puts an * before the LOOKUP function...I'm not sure what the * means or what it does but never the less it's not working as it should.
=IF(Main!$C12="","",INDEX('Player Quota History'!E4:E33,MATCH(Main!$C12,'Player Quota History'!C4:C33,0)*LOOKUP(2,1/('Player Quota History'!F12:AK12<>""),'Player Quota History'!F12:AK12)))


I hope that this helps.

vinceF
 
Upvote 0
No, it's still unclear, what are the results you're looking for, for each player?

Since the 2 formulas produce completely different results, why are you trying to combine them?
 
Upvote 0
With my limited Excel skills, this is a tough one to explain.

I tried to combine the formulas in "Main" H12

Main Sheet
C12 has the participating players name, participants may change from week to week therefore the names are not static.
G12 reports the players Quota
H12 I want to be able to adjust G12's quota number based on if that player did not win on any given week. If the player has not won I want to adjust his Quota number in G12.
This formula matches the player in C12 with the player listed in the "Player Quota Sheet" from column C
=IF(Main!$C12="","",INDEX('Player Quota History'!E4:E33,MATCH(Main!$C12,'Player Quota History'!C4:C33,0)

To keep track of the players wins or losses I have a sheet listing every players names that will play in the game called, "Player Quota History". On that sheet the players names are in Column C4:C57
In column E4:e57 reports the individual players Quota.
In Row E4:AK4 it automatically adjust the players quota down by 1 if that player did not win that week.
This formula reports the last cell with a value in it. =LOOKUP(2,1/('Player Quota History'!D5:H5<>""),'Player Quota History'!D5:H5)

Does this help?
VinceF

Master Skins-Stableford Templet 3-11-22.xlsm
BCDEFGHIJKLMNOPQRS
10
11TEAM REQPLAYERINDEXHDCPSTROKESQUOTAQUOTA ADJSKINSFRONT
12NoTucker9.0121223#REF!Yes
13   
14   
15   
16   
17   
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B11Expression=$B$12="no"textNO
B11Expression=$B$12="yes"textNO
C11Expression=ISTEXT($C$12)textNO
C11Expression=$B$12="yes"textNO
B11Expression=AND($AH$4="place", $B$4="skins & stableford")textNO
B11Expression=AND($AH$4="point", $B$4="skins & stableford")textNO
B11Expression=AND($B$4="skins", ISNUMBER($E$4))textNO
B11Expression=AND($AH$4="point", $B$4="stableford")textNO
B11Expression=AND($AH$4="place", $B$4="stableford")textNO
C11Expression=$B$12="no"textNO
S12:S51Expression=AND($B$7="half",'Half Stroke Skins'!$AH5=1)textNO
S12:S51Expression=AND($B$7="full",' Full Stroke Skins'!$AH5=1)textNO
L12:R12Expression=AND($B$7="half",'Half Stroke Skins'!AA$5=1)textNO
L12:R12Expression=AND($B$7="full",' Full Stroke Skins'!AA$5=1)textNO
R13:R51Expression=AND($B$7="half",'Half Stroke Skins'!$AG6=1)textNO
R13:R51Expression=AND($B$7="full",' Full Stroke Skins'!$AG6=1)textNO
Q13:Q51Expression=AND($B$7="half",'Half Stroke Skins'!$AF6=1)textNO
Q13:Q51Expression=AND($B$7="full",' Full Stroke Skins'!$AF6=1)textNO
P13:P51Expression=AND($B$7="half",'Half Stroke Skins'!$AE6=1)textNO
P13:P51Expression=AND($B$7="full",' Full Stroke Skins'!$AE6=1)textNO
O13:O51Expression=AND($B$7="half",'Half Stroke Skins'!$AD6=1)textNO
O13:O51Expression=AND($B$7="full",' Full Stroke Skins'!$AD6=1)textNO
N13:N51Expression=AND($B$7="half",'Half Stroke Skins'!$AC6=1)textNO
N13:N51Expression=AND($B$7="full",' Full Stroke Skins'!$AC6=1)textNO
M13:M51Expression=AND($B$7="half",'Half Stroke Skins'!$AB6=1)textNO
M13:M51Expression=AND($B$7="full",' Full Stroke Skins'!$AB6=1)textNO
L13:L51Expression=AND($B$7="half",'Half Stroke Skins'!$AA6=1)textNO
L13:L51Expression=AND($B$7="full",' Full Stroke Skins'!$AA6=1)textNO
K12:K51Expression=AND($B$7="half",'Half Stroke Skins'!$Z5=1)textNO
K12:K51Expression=AND($B$7="full",' Full Stroke Skins'!$Z5=1)textNO
J11Expression=($B$4="skins")textNO
J11Expression=($B$4="stableford")textNO
J11Expression=ISTEXT($J$12:$J$51)textNO
J11Expression=ISNUMBER($D$12:$D$51)textNO
J11Expression=$B$4="Stableford"textYES
D11Expression=ISNUMBER($D$12)textNO
D11Expression=ISTEXT($C$12)textNO
I13:I51Cell Valuecontains "No"textNO
I12Cell Valuecontains "No"textNO


Master Skins-Stableford Templet 3-11-22.xlsm
BCDEFGHIJ
25/1
3#PLAYERStart(W/L)Quota(W/L)Quota(W/L)
41AltmanAdam10l9l8
52BeasleyArlen28l27 
63CalgwellGary24  
74CurtisJim22  
85DelongJoe24  
96DraggooTylor32  
107DraggooKraig22  
118EdgarJeff26l25l24
129FinazzoVince3l2 
1310HannaMarty33  
Player Quota History
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E4Expression=ISTEXT($E$40)textNO
E4Expression=ISNUMBER(#REF!)textNO
E4Expression="if(and($B$2=""skins"",$E$2=ismumber)"textNO
E4Expression=ISTEXT($D$35)textNO
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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