Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
i have an employee list and need to calculate notice periods based on length
of service. col G is length of service in years, col H is length of service in months. i've figured most of them but having problems with getting a text output in addition to the numeric value. for example, employee with length of service 59 mths get 1 week for each complete year of service which is in col G, but i just get the numeric value in the return, what i need is the numeric value folowed by the text WEEKS. i've tried adding the text in inverted commas, brackets, and nothing works. can anyone help? my statement is as follows; =IF(H18143,"12 WEEKS",IF(H1859,G18,IF(H185,"1 MONTH","1 WEEK"))) |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try it like this:
=IF(H18143,"12 WEEKS",IF(H1859,G18&" weeks",IF(H185,"1 MONTH","1 WEEK"))) Hope this helps. Pete On May 23, 3:11*pm, MissV wrote: i have an employee list and need to calculate notice periods based on length of service. col G is length of service in years, col H is length of service in months. *i've figured most of them but having problems with getting a text output in addition to the numeric value. *for example, employee with length of service 59 mths get 1 week for each complete year of service which is in col G, but i just get the numeric value in the return, what i need is the numeric value folowed by the text WEEKS. *i've tried adding the text in inverted commas, brackets, and nothing works. *can anyone help? *my statement is as follows; =IF(H18143,"12 WEEKS",IF(H1859,G18,IF(H185,"1 MONTH","1 WEEK"))) * * |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hello! thanks for replying so quick.
i tried it and get #VALUE! in those fields. have tried it with and without a space between " weeks MissV "Pete_UK" wrote: Try it like this: =IF(H18143,"12 WEEKS",IF(H1859,G18&" weeks",IF(H185,"1 MONTH","1 WEEK"))) Hope this helps. Pete On May 23, 3:11 pm, MissV wrote: i have an employee list and need to calculate notice periods based on length of service. col G is length of service in years, col H is length of service in months. i've figured most of them but having problems with getting a text output in addition to the numeric value. for example, employee with length of service 59 mths get 1 week for each complete year of service which is in col G, but i just get the numeric value in the return, what i need is the numeric value folowed by the text WEEKS. i've tried adding the text in inverted commas, brackets, and nothing works. can anyone help? my statement is as follows; =IF(H18143,"12 WEEKS",IF(H1859,G18,IF(H185,"1 MONTH","1 WEEK"))) |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I presume that H18 does actually contain numbers, and not text values
that look like numbers? And what is in G18? Pete On May 23, 3:36*pm, MissV wrote: hello! *thanks for replying so quick. i tried it and get #VALUE! in those fields. *have tried it with and without a space between " weeks MissV "Pete_UK" wrote: Try it like this: =IF(H18143,"12 WEEKS",IF(H1859,G18&" weeks",IF(H185,"1 MONTH","1 WEEK"))) Hope this helps. Pete On May 23, 3:11 pm, MissV wrote: i have an employee list and need to calculate notice periods based on length of service. col G is length of service in years, col H is length of service in months. *i've figured most of them but having problems with getting a text output in addition to the numeric value. *for example, employee with length of service 59 mths get 1 week for each complete year of service which is in col G, but i just get the numeric value in the return, what i need is the numeric value folowed by the text WEEKS. *i've tried adding the text in inverted commas, brackets, and nothing works. *can anyone help? *my statement is as follows; =IF(H18143,"12 WEEKS",IF(H1859,G18,IF(H185,"1 MONTH","1 WEEK"))) * *- Hide quoted text - - Show quoted text - |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi - both cells contain a Date Diff formula based on dates in E18 and F18.
G18 calculates full calendar years and H18 calcuates full calendar months. The other Ifs in the statement work fine, it is just the insertion of the word 'weeks' causing the problem. "Pete_UK" wrote: I presume that H18 does actually contain numbers, and not text values that look like numbers? And what is in G18? Pete On May 23, 3:36 pm, MissV wrote: hello! thanks for replying so quick. i tried it and get #VALUE! in those fields. have tried it with and without a space between " weeks MissV "Pete_UK" wrote: Try it like this: =IF(H18143,"12 WEEKS",IF(H1859,G18&" weeks",IF(H185,"1 MONTH","1 WEEK"))) Hope this helps. Pete On May 23, 3:11 pm, MissV wrote: i have an employee list and need to calculate notice periods based on length of service. col G is length of service in years, col H is length of service in months. i've figured most of them but having problems with getting a text output in addition to the numeric value. for example, employee with length of service 59 mths get 1 week for each complete year of service which is in col G, but i just get the numeric value in the return, what i need is the numeric value folowed by the text WEEKS. i've tried adding the text in inverted commas, brackets, and nothing works. can anyone help? my statement is as follows; =IF(H18143,"12 WEEKS",IF(H1859,G18,IF(H185,"1 MONTH","1 WEEK"))) - Hide quoted text - - Show quoted text - |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi - Columns G & H both contain Date Diff calculations based on dates in
Columns E & F. "Pete_UK" wrote: I presume that H18 does actually contain numbers, and not text values that look like numbers? And what is in G18? Pete On May 23, 3:36 pm, MissV wrote: hello! thanks for replying so quick. i tried it and get #VALUE! in those fields. have tried it with and without a space between " weeks MissV "Pete_UK" wrote: Try it like this: =IF(H18143,"12 WEEKS",IF(H1859,G18&" weeks",IF(H185,"1 MONTH","1 WEEK"))) Hope this helps. Pete On May 23, 3:11 pm, MissV wrote: i have an employee list and need to calculate notice periods based on length of service. col G is length of service in years, col H is length of service in months. i've figured most of them but having problems with getting a text output in addition to the numeric value. for example, employee with length of service 59 mths get 1 week for each complete year of service which is in col G, but i just get the numeric value in the return, what i need is the numeric value folowed by the text WEEKS. i've tried adding the text in inverted commas, brackets, and nothing works. can anyone help? my statement is as follows; =IF(H18143,"12 WEEKS",IF(H1859,G18,IF(H185,"1 MONTH","1 WEEK"))) - Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If statement query | Excel Worksheet Functions | |||
IF statement query | Excel Discussion (Misc queries) | |||
IF statement query | Excel Worksheet Functions | |||
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) |