![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Scotland
Posts: 139
|
Can anyone help with a fromula for the following.
Formula to return a value when a wining result is predicted E.g. predicted results =Cell C2=4 cell D2=2 (a score of 4 2) Actual results =Cell E2=1 Cell F2 = 0 (a actual score of 1 0) Formula in Cell G2 would return a given value say “correct” to denote the prediction of a winning score as correct. Thanks in advance Robert [ This Message was edited by: rmtaylor on 2002-05-18 05:55 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
=IF(AND(C2=E2,D2=F2),"Correct","Wrong")
__________________
<MARQUEE>...........Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic...............The easiest thing to find is fault, don't be easy !.. --Anonymous--...</marquee> |
|
|
|
|
|
#3 | |
|
Board Regular
Join Date: Feb 2002
Location: Scotland
Posts: 139
|
Quote:
Thanks for the reply but I already have that part working. I was attempting to take it a stage further to get the formula to give a value "correct" for prediction of the correct result not just the score i.e. a win of any score predicted would return "correct" e.g. prediction four two Result one nil would be correct as a win for the home team was predicted and so on. Not that I will be recording any Scottish results |
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Robert,
would you like to take a look at my prediction league for the world cup ? it might get you started.... I was asking those very same questions about 3 weeks ago Chris ~ ~ ~ |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
what about:
=IF(VLOOKUP(C2-D2,{-10,1;0,2;1,3},2)=VLOOKUP(E2-F2,{-10,1;0,2;1,3},2),"Correct","Incorrect") ?
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Dave your post disappeared!!
_________________ Share the wealth!! Ian Mac [ This Message was edited by: Ian Mac on 2002-05-18 11:28 ] |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
=IF(AND(C2=E2,D2=F2),"Correct",IF(AND(C2>D2,E2>F2),"Win","No")) correct wording and references as necessary |
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,064
|
Chris please sent to work if different to what i have already.
Cheers mate!
__________________
Free Excel based Web Toolbar available here. Jack in the UK J & R Excel Solutions "making Excel work for you" |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|