Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Oops. my mistake. Thanks Biff.
If this post helps click Yes --------------- Jacob Skaria "T. Valko" wrote: =IF(B1="","",LOOKUP(B1,{"F","S","C"},{30,10,20} )) The lookup_vector *must* be sorted in ascending order. =IF(B1="","",LOOKUP(B1,{"C","F","S"},{20,30,10})) -- Biff Microsoft Excel MVP "Jacob Skaria" wrote in message ... Try the below formula in B1..Hope you will have only these 3 entries in B1. Lookup will look at the value in the 1st array which is f,s,c and return the corresponding value in the next array which is 30,10,20 respectively... =IF(B1="","",LOOKUP(B1,{"F","S","C"},{30,10,20})) If this post helps click Yes --------------- Jacob Skaria "locasciok1" wrote: I am making a spreadsheet of what's withheld from employee's paychecks (every 2 weeks) (e.g., health insurance premiums, Flex Spending, etc). A B C 1 John (F) 2 Mary (S) Column B lists what kind of coverage the employee has--"F" is Family, "S" is Single, "C" is Couple--each coverage has a different premium (price). I need a function for column C that will look at cell B1 and see that "F" means John subscribes to Family Coverage, and return (to column C) a particular value; look at cell B2 and see that "S" means Mary subscribes to Single coverage, and return a different value. Is there a function/formula that I can utilize to reach this goal? Please, if you're answering, explain in Lehman's terms. Thanks in advance! . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Column() to return a letter instead of a number? | Excel Worksheet Functions | |||
How to replace column letter in refferences with a function using the old column letter? | Links and Linking in Excel | |||
How to replace column letter in refferences with a function using the old column letter? | Excel Worksheet Functions | |||
return the column reference number of a function result | Excel Discussion (Misc queries) | |||
column header changed from letter to number, how return to letter | Excel Discussion (Misc queries) |