Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
HI,
this is sure to be easy to those in the know! Using Excel 2000. I have to compare scores in two columns (B & C) and wish to have in my table either W or L for win or lose. So in B3 (for) there is 21 and in C3 (against) there is 15 So the table should show a W, but must show an L if the scores are reversed. Not sure which function to use (tried IF but could not get it to do two meanings) So what should I use and how can I write it please? Malcolm... |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(B3=C3,"T",IF(B3C3,"W","L"))
-- Gary''s Student - gsnu2007k |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Hi, Try this =IF(B3C3,"W","L") But that won't cater for a draw which this will =IF(B3C3,"W",IF(B3<C3,"L","D")) Mike "Malcolm Austin" wrote: HI, this is sure to be easy to those in the know! Using Excel 2000. I have to compare scores in two columns (B & C) and wish to have in my table either W or L for win or lose. So in B3 (for) there is 21 and in C3 (against) there is 15 So the table should show a W, but must show an L if the scores are reversed. Not sure which function to use (tried IF but could not get it to do two meanings) So what should I use and how can I write it please? Malcolm... |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this in D3:
=IF(OR(C3="",B3=""),"",IF(B3C3,"W",IF(C3B3,"L"," D"))) This also caters for equal scores (D for draw), and for empty cells in either C3 or B3. Just copy it down as required. Hope this helps. Pete On Jan 10, 12:53*pm, "Malcolm Austin" wrote: HI, * * * this is sure to be easy to those in the know! Using Excel 2000. I have to compare scores in two columns *(B & C) *and wish to have in my table either W or L for win or lose. So in B3 (for) there is 21 and in C3 (against) there is 15 So the table should show a W, but must show an L if the scores are reversed. Not sure which function to use (tried IF but could not get it to do two meanings) So what should I use and how can I write it please? Malcolm... |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Or you can get cute: Enter the formula =B3-C3 and copy it down Select the range and apply the custom format: "W";"L";"T" Choose Format, Cells, Number tab, Custom and enter the above code in the Type box. -- If this helps, please click the Yes button Cheers, Shane Devenshire "Malcolm Austin" wrote: HI, this is sure to be easy to those in the know! Using Excel 2000. I have to compare scores in two columns (B & C) and wish to have in my table either W or L for win or lose. So in B3 (for) there is 21 and in C3 (against) there is 15 So the table should show a W, but must show an L if the scores are reversed. Not sure which function to use (tried IF but could not get it to do two meanings) So what should I use and how can I write it please? Malcolm... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ISBLANK function not working when cell is blank dut to function re | Excel Discussion (Misc queries) | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions |