Double calculating Formulas xl2003

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,843
Office Version
  1. 2010
Platform
  1. Windows
In my Jeanie I’m showing two ways of getting the “Ref” number (G2 and G3) for my selected teams (E2 and F2)…
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
What I was to know is… in xl 2003 is there a way to do this without the double calculating formula to eliminate the N/A?
<o:p> </o:p>
Also how could I use utilize SUMPRODUCT as opposed to CONCATENATION in my “Non Array” solution please?

Excel Workbook
ABCDEFGH
1RefHomeAwayRef
21Norwich CityWatfordBurnleyNottingham Forest8Array
32Bristol CityMillwall8Non Array
43Coventry CityPortsmouth
54Hull CitySwansea City
65Preston North EndDoncaster Rovers
76QPRBarnsley
87ReadingScunthorpe United
98BurnleyNottingham Forest
109Crystal PalaceLeicester City
1110MiddlesbroughIpswich Town
1211Leeds UtdDerby County
Sheet1
#VALUE!
</td></tr></table></td></tr></table>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
try

Code:
=sumproduct(1*($B$2:$B$12=E2),1*(($C$2:$C$12=F2),$A$2:$A$12)

Regards

Bolo
 
Upvote 0
I've just seen that this sorts part of my question out...

=INDEX(Ref,SUMPRODUCT(MATCH(1,(Home=E2)*(Away=F2),0)))

It's the double calculation in xl 2003 that is now my concern...
 
Upvote 0
I've just seen that this sorts part of my question out...

=INDEX(Ref,SUMPRODUCT(MATCH(1,(Home=E2)*(Away=F2),0)))

It's the double calculation in xl 2003 that is now my concern...
What is the SUMPRODUCT function supposed to be doing? Is it there just so you don't need to array enter the formula?

You could do something like this that will return a 0 instead of the blank.

Array entered**:

=LOOKUP(1E100,CHOOSE({1,2},0,INDEX(Ref,MATCH(1,(Home=E2)*(Away=F2),0))))

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.
 
Upvote 0
Does Ref consist of consecutive integers, possibly starting with 1?

Hi Aladin... I bet you look at my formulas and know exactly who helped me with them...!

Yes to consecutive starting with 1... So for my Eredivisie workbook Ref will start at 1 and end at 306...
 
Upvote 0
Yes Biff, the SUMPRODUCT was there to eliminate the Array Formula... <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
Your solution is Array but eliminates the double calculation...so thanks for that!<o:p></o:p>
<o:p></o:p>
With Aladin now on the case I'm sure he'll advise on the efficiency of all these solutions...<o:p></o:p>
 
Upvote 0
Hi Aladin... I bet you look at my formulas and know exactly who helped me with them...!

Yes to consecutive starting with 1... So for my Eredivisie workbook Ref will start at 1 and end at 306...

The following would be admissible on Excel 2003...

=LOOKUP(BigNum,CHOOSE({1,2},0,MATCH(1,IF(Home=E2,IF(Away=F2,1)),0)))

where BigNum = 9.99999999999999E+307 or just 9.99E+307.

Note. The IF form is slightly faster than binary multiplications.
 
Upvote 0
Thanks Aladin...:)

Just to make sure I did have to enter your solution with CSE... Is that right?
 
Upvote 0
Yes Biff, the SUMPRODUCT was there to eliminate the Array Formula... <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
Your solution is Array but eliminates the double calculation...so thanks for that!<o:p></o:p>
<o:p></o:p>
You're welcome. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,581
Messages
6,179,668
Members
452,936
Latest member
anamikabhargaw

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