Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default IF Statement Query

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default IF Statement Query

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default IF Statement Query

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default IF Statement Query

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default IF Statement Query

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default IF Statement Query

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If statement query Rajula Excel Worksheet Functions 3 April 20th 07 11:14 AM
IF statement query shakey1181 Excel Discussion (Misc queries) 2 November 8th 06 03:17 PM
IF statement query JaB Excel Worksheet Functions 5 September 27th 06 04:34 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 03:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"