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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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.

Aladin,

I just seen that I have major problems with this formula... Basically if the "Home" and "Away" haven't played a game the formula returns "0" as my ref row... The fact that it returns a "0" then creates problems later in my book when I pull things using SMALL...

Without a double calculation and bearing in mind I'm using xl2003, is there a way of returning a blank if "Home" and "Away" don't return a ref number please?
 
Upvote 0
Aladin,

I just seen that I have major problems with this formula... Basically if the "Home" and "Away" haven't played a game the formula returns "0" as my ref row... The fact that it returns a "0" then creates problems later in my book when I pull things using SMALL...

Without a double calculation and bearing in mind I'm using xl2003, is there a way of returning a blank if "Home" and "Away" don't return a ref number please?

1) Suppose that the formula in question is in X2 and its result is 0.

2) Let's also suppose that we want to use the value from X2 in an Index/Small formula in Y2... The following would be a general approach:

Y2:

=IF(X2,the Index expression,"")

If this is not clear, would you post the formula expression using the result from the LOOKUP formula under consideration?
 
Upvote 0
Hi Aladin,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
I think I understand you. The problem is, so much of my workbook is dependant on these ref numbers. The “0” return is my problem as I reverted back to my original double calculating formula and that eliminated my problem…
<o:p></o:p>
I’ll paste you the following formulas to give you an idea of how my ref number is so vital…
<o:p></o:p>
These are formulas to find Last 5 games…
<o:p></o:p>
Excel Workbook
BMBN
5Last 5 Home Played5
6Last 5 Home Min444
7Last 5 Home Max541
8Last 5 Away Played5
9Last 5 Away Min438
10Last 5 Away Max537
11
12Barnsley0
13Bristol City32
FT Scores
#VALUE!
</TD></TR></TABLE></TD></TR></TABLE>


<o:p></o:p>
To find Last 8 games
<o:p></o:p>
Excel Workbook
BMBN
47Last 8 Game 1541
48Last 8 Game 2537
FT Scores
#VALUE!
</TD></TR></TABLE></TD></TR></TABLE>


<o:p></o:p>
To find since last Draw for example…
<o:p></o:p>
Excel Workbook
CMCN
7D2
8HomeSinceLastDraw1
9
10
11
12W
13D
FT Scores
#VALUE!
</TD></TR></TABLE></TD></TR></TABLE>


<o:p></o:p>
There are lots of other things that are dependant on my ref number too…
 
Upvote 0
Care to post a double calculating formula which depends on what the LOOKUP formula
under consideration returns?
 
Last edited:
Upvote 0
I’m not too sure what you mean… I think the issue is the LOOKUP method when returning “0”.

0 “confuses” my book because it sees “0 ref” as a game which my book thinks has been played.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
These are the two formulas side by side…
<o:p></o:p>
LOOKUP version:
<o:p></o:p>
Excel Workbook
BMBN
12Barnsley0
FT Scores
#VALUE!
</TD></TR></TABLE></TD></TR></TABLE>


<o:p></o:p>
Double Calculating:
<o:p></o:p>
Excel Workbook
BHBI
12Barnsley 
FT Scores
#VALUE!
</TD></TR></TABLE></TD></TR></TABLE>


<o:p></o:p>
Thanks Aladin, I hope that is what you are after.
 
Upvote 0
Here is one column of the grid that pulls all the ref number…
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Those numbers in a LARGE will give away games in last played order (today, yesterday etc…)… or in a SMALL the games in date order (1<SUP>st</SUP> game of the season, 2<SUP>nd</SUP> game of the season etc)
<o:p></o:p>
When the game hasn’t been played I yield a 0 … Barnsley can’t play <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:place w:st="on">Barnsley</st1:place> so a “0”… Barnsley haven’t played Watford or <st1:place w:st="on">Middlesbrough</st1:place> so a “0”…
<o:p></o:p>
Other formulas that are reliant on my ref number like the examples in post # 15 are not calculating properly… because they see “0” as a game played
<o:p></o:p>
What I refer to as my double calculating formula yield “” if a game hasn’t been played… so everything works…
<o:p></o:p>
I will stick with the double calculating if that is the only solution Aladin…

Excel Workbook
BMBN
1Barnsley
21
3Season Home23
4Season Away21
5Last 5 Home Played5
6Last 5 Home Min444
7Last 5 Home Max541
8Last 5 Away Played5
9Last 5 Away Min382
10Last 5 Away Max537
11
12Barnsley0
13Bristol City32
14Burnley140
15Cardiff City438
16Coventry City147
17Crystal Palace464
18Derby County407
19Doncaster Rovers321
20Hull City302
21Ipswich Town195
22Leeds Utd382
23Leicester City344
24Middlesbrough0
25Millwall324
26Norwich City53
27Nottingham Forest281
28Portsmouth378
29Preston North End187
30QPR6
31Reading88
32Scunthorpe United102
33Sheffield United537
34Swansea City270
35Watford0
FT Scores
[/B]
 
Last edited:
Upvote 0
I think I dislike Jeanie... Thwarts communication.

Here is an example what I mean...

This LOOKUP bit we are taking about calculates a position. Let's suppose
that such a formula resides in X2.

Let's suppose that I need to use X2 in an INDEX formula in Y2...

Since X2 can be either a 0 or a non-zero number, I can do the following in Y2:

=IF(X2=0,"",INDEX(Range,X2))

This formula avoids using 0 and gives a blank.

This is why I was asking you which formula directly uses the result of the LOOKUP formula...
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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