Home

Formula Help Please

%3CLINGO-SUB%20id%3D%22lingo-sub-766026%22%20slang%3D%22en-US%22%3EFormula%20Help%20Please%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-766026%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20749px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F123930i23F6D206AAFCBFBE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22excelcupknockoutphoto.jpg%22%20title%3D%22excelcupknockoutphoto.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDon't%20think%20this%20worked%20last%20time%2C%20so%20I'll%20try%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20auto-fill%20team%20names%20in%20rounds%202%20and%20so%20on.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20Round%201%2C%20you%20can%20see%20that%2C%20in%20Tie1%2C%20NLBOT11%20won%205-4%20away%20to%20NLBOT1.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20I%20am%20looking%20for%20a%20formula%20(IF%2FOr%2C%20OR%20A%20COMBINATION%20OF%20BOTH)%20that%20auto-fills%20the%20winners%20of%20Tie1%20into%20CELL%20J1%20and%20then%20the%20winners%20of%20TIE2%20are%20auto-filled%20in%20to%20J2%2C%20and%20then%20the%20formulas%20continue%20for%20the%20rest%20of%20Round%201%20winners%20to%20be%20automatically%20entered%20into%20J%20Column%20cells%20accordingly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHelp%20please!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-766026%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-766036%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%20Please%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-766036%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F379562%22%20target%3D%22_blank%22%3E%40Carl1983%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHi%2C%20you%20aren't%20going%20to%20like%20this%20too%20much%2C%20because%20the%20way%20you%20have%20set%20it%20up%20has%20no%20helper%20columns%20(which%20would%20make%20your%20life%20a%20lot%20easier).%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20column%20J%2C%20I%20would%20use%20the%20following%20in%20cell%20J1%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3DOFFSET(%24C%241%2C(ROWS(%24I%241%3AI1)-1)*2%2C(OFFSET(%24D%241%2C(ROWS(%24I%241%3AI1)-1)*2%2C)%3COFFSET%3E%3C%2FOFFSET%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EFor%20column%20N%2C%20I%20would%20use%20the%20following%20in%20cell%20N1%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3DOFFSET(%24C%241%2C(ROWS(%24I%241%3AI2)-1)*2%2C(OFFSET(%24D%241%2C(ROWS(%24I%241%3AI2)-1)*2%2C)%3COFFSET%3E%3C%2FOFFSET%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EThese%20formulae%20could%20be%20a%20heck%20of%20a%20lot%20simpler%20if%20you%20had%20helper%20columns%20to%20number%20matches%20in%20a%20particular%20way%20(you%20could%20tie%20them%20to%20the%20TIE%20numbering).%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3ESome%20might%20not%20like%20my%20use%20of%20OFFSET%20and%20COLUMNS.%26nbsp%3B%20OFFSET%20is%20a%20volatile%20function%20(it%20recalculates%20all%20of%20the%20time)%2C%20but%20it%20is%20useful%20when%20your%20ranges%20may%20vary.%26nbsp%3B%20Alternatively%2C%20you%20could%20use%20INDEX.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECOLUMNS%20is%20used%20similarly%20in%20case%20you%20add%20any%20more%20columns%20in%20between%20the%20two%20teams%20playing%20in%20each%20round.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETry%20considering%20structure%20more%20going%20forward.%26nbsp%3B%20With%20a%20better%20layout%2C%20your%20formulae%20would%20be%20trivial.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheck%20out%20%3CA%20href%3D%22http%3A%2F%2Fwww.sumproduct.com%2Fthought%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ewww.sumproduct.com%2Fthought%3C%2FA%3Efor%20more%20free%20tips%20and%20downloads.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-766038%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%20Please%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-766038%22%20slang%3D%22en-US%22%3E%3CP%3EForgot%20to%20add%20my%20example%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F20141%22%20target%3D%22_blank%22%3E%40Liam%20Bastick%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Carl1983
Occasional Visitor

excelcupknockoutphoto.jpg

 

Don't think this worked last time, so I'll try again.

 

I want to auto-fill team names in rounds 2 and so on.

In Round 1, you can see that, in Tie1, NLBOT11 won 5-4 away to NLBOT1. 

 

So, I am looking for a formula (IF/Or, OR A COMBINATION OF BOTH) that auto-fills the winners of Tie1 into CELL J1 and then the winners of TIE2 are auto-filled in to J2, and then the formulas continue for the rest of Round 1 winners to be automatically entered into J Column cells accordingly.

 

Help please!

2 Replies

@Carl1983 

Hi, you aren't going to like this too much, because the way you have set it up has no helper columns (which would make your life a lot easier).  

 

For column J, I would use the following in cell J1:

 

=OFFSET($C$1,(ROWS($I$1:I1)-1)*2,(OFFSET($D$1,(ROWS($I$1:I1)-1)*2,)<OFFSET($F$1,(ROWS($I$1:I1)-1)*2,))*COLUMNS($D1:$G1))

 

For column N, I would use the following in cell N1:

 

=OFFSET($C$1,(ROWS($I$1:I2)-1)*2,(OFFSET($D$1,(ROWS($I$1:I2)-1)*2,)<OFFSET($F$1,(ROWS($I$1:I2)-1)*2,))*COLUMNS($D2:$G2))

 

These formulae could be a heck of a lot simpler if you had helper columns to number matches in a particular way (you could tie them to the TIE numbering).

 

Some might not like my use of OFFSET and COLUMNS.  OFFSET is a volatile function (it recalculates all of the time), but it is useful when your ranges may vary.  Alternatively, you could use INDEX.

 

COLUMNS is used similarly in case you add any more columns in between the two teams playing in each round.

 

Try considering structure more going forward.  With a better layout, your formulae would be trivial.

 

Check out www.sumproduct.com/thought for more free tips and downloads.

Forgot to add my example @Liam Bastick 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
17 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies