Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello
example : cell a1 reads " 1B- Failure to follow customer instructions" ( 1B is the error code and the rest is the desciption of the error) now in column F1 I want to give this error a value. every error that starts with a 1 has a value of 5, if the error starts with a 2 is has a value of 10 , if the error starts with 3 has a value 15. etc How can I do this? thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
If the first character in A1 is numeric, multiply it by 5, otherwise show 0: =IF(ISNUMBER(LEFT(A1,1)), LEFT(A1,1), 0)*5 -- Hope that helps. Vergel Adriano "Wanna Learn" wrote: Hello example : cell a1 reads " 1B- Failure to follow customer instructions" ( 1B is the error code and the rest is the desciption of the error) now in column F1 I want to give this error a value. every error that starts with a 1 has a value of 5, if the error starts with a 2 is has a value of 10 , if the error starts with 3 has a value 15. etc How can I do this? thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
It looks like my first suggestion was an improper use of the ISNUMBER
function. This seems to work: =IF(ISERROR(LEFT(A1,1)*5),0,LEFT(A1,1)*5) -- Hope that helps. Vergel Adriano "Vergel Adriano" wrote: Hi, If the first character in A1 is numeric, multiply it by 5, otherwise show 0: =IF(ISNUMBER(LEFT(A1,1)), LEFT(A1,1), 0)*5 -- Hope that helps. Vergel Adriano "Wanna Learn" wrote: Hello example : cell a1 reads " 1B- Failure to follow customer instructions" ( 1B is the error code and the rest is the desciption of the error) now in column F1 I want to give this error a value. every error that starts with a 1 has a value of 5, if the error starts with a 2 is has a value of 10 , if the error starts with 3 has a value 15. etc How can I do this? thanks |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Excellent thank you
"Vergel Adriano" wrote: It looks like my first suggestion was an improper use of the ISNUMBER function. This seems to work: =IF(ISERROR(LEFT(A1,1)*5),0,LEFT(A1,1)*5) -- Hope that helps. Vergel Adriano "Vergel Adriano" wrote: Hi, If the first character in A1 is numeric, multiply it by 5, otherwise show 0: =IF(ISNUMBER(LEFT(A1,1)), LEFT(A1,1), 0)*5 -- Hope that helps. Vergel Adriano "Wanna Learn" wrote: Hello example : cell a1 reads " 1B- Failure to follow customer instructions" ( 1B is the error code and the rest is the desciption of the error) now in column F1 I want to give this error a value. every error that starts with a 1 has a value of 5, if the error starts with a 2 is has a value of 10 , if the error starts with 3 has a value 15. etc How can I do this? thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
New Validation option to format 1st letter as Capital letter | Excel Discussion (Misc queries) | |||
Formula-Cell has a letter (C=100, M=1,000) and needs to divide? | Excel Worksheet Functions | |||
column header changed from letter to number, how return to letter | Excel Discussion (Misc queries) | |||
if a cell = a particular letter or even contains that letter | Excel Worksheet Functions | |||
Function / formula to be used if cell contains a letter. | Excel Worksheet Functions |