Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
George Gee
 
Posts: n/a
Default Formula help

Hi all

In cell G7 I have a football score, (user input) in the form of (e.g.) 2 2
(note the space between the two numbers).

In G6 I want a formula that displays "Win" "Lose" or "Draw", dependant upon
the input sco

So if the leftmost number is greater than the rightmost number, "Win".

If the leftmost number is smaller than the rightmost number "Lose".

If the leftmost number is equal to the rightmost number "Draw".

Many thanks for your time.

--
George


  #2   Report Post  
Leo Heuser
 
Posts: n/a
Default

Hi George

One way assuming one digit for either result:

=IF(LEFT(G7,1)RIGHT(G7,1),"Win",IF(LEFT(G7,1)<RIG HT(G7,1),"Lose","Draw"))

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"George Gee" skrev i en meddelelse
...
Hi all

In cell G7 I have a football score, (user input) in the form of (e.g.) 2 2
(note the space between the two numbers).

In G6 I want a formula that displays "Win" "Lose" or "Draw", dependant
upon
the input sco

So if the leftmost number is greater than the rightmost number, "Win".

If the leftmost number is smaller than the rightmost number "Lose".

If the leftmost number is equal to the rightmost number "Draw".

Many thanks for your time.

--
George




  #3   Report Post  
George Gee
 
Posts: n/a
Default

Hi Leo

Many thanks for that, it works fine.
It would be a rare day indeed for a score of more than 9 in English league
football!

George
--

*Leo Heuser* has posted this message:

Hi George

One way assuming one digit for either result:

=IF(LEFT(G7,1)RIGHT(G7,1),"Win",IF(LEFT(G7,1)<RIG HT(G7,1),"Lose","Draw"))

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"George Gee" skrev i en meddelelse
...
Hi all

In cell G7 I have a football score, (user input) in the form of
(e.g.) 2 2 (note the space between the two numbers).

In G6 I want a formula that displays "Win" "Lose" or "Draw",
dependant upon
the input sco

So if the leftmost number is greater than the rightmost number,
"Win".

If the leftmost number is smaller than the rightmost number "Lose".

If the leftmost number is equal to the rightmost number "Draw".

Many thanks for your time.

--
George



  #4   Report Post  
Leo Heuser
 
Posts: n/a
Default

Hi George

You're welcome and thanks for the feedback :-)

Should the day come, this formula can be used
regardless of the number of digits. The number
of spaces between the two results don't matter.

=IF(VALUE(LEFT(G7,FIND(" ",G7)))
VALUE(MID(G7,FIND(" ",G7),1000)),"Win",
IF(VALUE(LEFT(G7,FIND(" ",G7)))<
VALUE(MID(G7,FIND(" ",G7),1000)),"Lose","Draw")

Entered as one line.

LeoH


"George Gee" skrev i en meddelelse
...
Hi Leo

Many thanks for that, it works fine.
It would be a rare day indeed for a score of more than 9 in English league
football!

George



  #5   Report Post  
George Gee
 
Posts: n/a
Default


Hi Leo

Have noted your update, many thanks once again.


--
George



*Leo Heuser* has posted this message:

Hi George

You're welcome and thanks for the feedback :-)

Should the day come, this formula can be used
regardless of the number of digits. The number
of spaces between the two results don't matter.

=IF(VALUE(LEFT(G7,FIND(" ",G7)))
VALUE(MID(G7,FIND(" ",G7),1000)),"Win",
IF(VALUE(LEFT(G7,FIND(" ",G7)))<
VALUE(MID(G7,FIND(" ",G7),1000)),"Lose","Draw")

Entered as one line.

LeoH


"George Gee" skrev i en meddelelse
...
Hi Leo

Many thanks for that, it works fine.
It would be a rare day indeed for a score of more than 9 in English
league football!

George





  #6   Report Post  
Leo Heuser
 
Posts: n/a
Default

My pleasure :-)

LeoH


"George Gee" skrev i en meddelelse
...

Hi Leo

Have noted your update, many thanks once again.


--
George



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 05:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"