Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have columns that contain names of insurance companies followed by their
type. example aetna grp progressive pip cigna wc i would like to write a formula that would result in a 1, 2, or 3 corresponding to the type (grp, pip, wc) i'm thinking the formula would read 'if this cell contains 'grp' = 1, 'pip'=2, 'wc'=3' i cannot figure out how to write this formula thanks MS group |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=IF(B1="GRP",1,IF(B1="PIP",2,IF(B1="WC",3)))
"Joe" wrote in message ... i have columns that contain names of insurance companies followed by their type. example aetna grp progressive pip cigna wc i would like to write a formula that would result in a 1, 2, or 3 corresponding to the type (grp, pip, wc) i'm thinking the formula would read 'if this cell contains 'grp' = 1, 'pip'=2, 'wc'=3' i cannot figure out how to write this formula thanks MS group |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
To avoid an error flag when the cell is blank, use this version:
=IF(B1="GRP",1,IF(B1="PIP",2,IF(B1="WC",3,""))) "JLGWhiz" wrote in message ... =IF(B1="GRP",1,IF(B1="PIP",2,IF(B1="WC",3))) "Joe" wrote in message ... i have columns that contain names of insurance companies followed by their type. example aetna grp progressive pip cigna wc i would like to write a formula that would result in a 1, 2, or 3 corresponding to the type (grp, pip, wc) i'm thinking the formula would read 'if this cell contains 'grp' = 1, 'pip'=2, 'wc'=3' i cannot figure out how to write this formula thanks MS group |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
See your 2nd post for a formula where name & type are in the same cell.
Mike F "Joe" wrote in message ... i have columns that contain names of insurance companies followed by their type. example aetna grp progressive pip cigna wc i would like to write a formula that would result in a 1, 2, or 3 corresponding to the type (grp, pip, wc) i'm thinking the formula would read 'if this cell contains 'grp' = 1, 'pip'=2, 'wc'=3' i cannot figure out how to write this formula thanks MS group |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula | Excel Worksheet Functions | |||
extract formula result form cell without running formula again | Excel Programming | |||
Formula expected end of statement error, typing formula into cell as part of VBA macro | Excel Programming | |||
Cell doesn't show formula result - it shows formula (CTRL + ' doe. | Excel Worksheet Functions | |||
Commenting custom formula fields/formula on formula editor | Excel Programming |