Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 3
Default Help with an if then scenario

I need to make an if then scenario for my job basically to calculate what employees are on attendance warnings and such and I could also hopefully convert same formula for issues into vacation days available and other factors

what I need is if cell a1 is between 0-5 then cell b1 will show LVL0 if cell a1 is between 5-6 then cell b1 will show LVL1 and so on for attendance occurrences

and for vacation time if cell a2 is between 0-7.99 cell b2 will show "0" if cell a2 is between 8-15.99 cell b2 will show "1 day" and so on

any help would be appreciated hopefully fast because I have to have this done by end the day

Last edited by iVassh : May 3rd 13 at 09:34 AM
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Help with an if then scenario

Hi,

Am Fri, 3 May 2013 09:28:01 +0100 schrieb iVassh:

what I need is if cell a1 is between 0-5 then cell b1 will show LVL0 if
cell a1 is between 5-6 then cell b1 will show LVL1 and so on for
attendance occurrences

and for vacation time if cell a2 is between 0-7.99 cell b2 will show "0"
if cell a2 is between 8-15.99 cell b2 will show "1 day" and so on


in B1 try:
="LVL"&IF(A1<5,0,CHOOSE(ROUNDUP(A1-5,0),1,2,3,4,5,6,7,8,9,10))
and in B2:
=IF(A2<8,0,CHOOSE(ROUNDDOWN(A2/8,0),1,2,3,4,5,6,7,8,9,10)&" day(s)")


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Junior Member
 
Posts: 3
Default

Quote:
Originally Posted by Claus Busch View Post
Hi,

Am Fri, 3 May 2013 09:28:01 +0100 schrieb iVassh:

what I need is if cell a1 is between 0-5 then cell b1 will show LVL0 if
cell a1 is between 5-6 then cell b1 will show LVL1 and so on for
attendance occurrences

and for vacation time if cell a2 is between 0-7.99 cell b2 will show "0"
if cell a2 is between 8-15.99 cell b2 will show "1 day" and so on


in B1 try:
="LVL"&IF(A1<5,0,CHOOSE(ROUNDUP(A1-5,0),1,2,3,4,5,6,7,8,9,10))
and in B2:
=IF(A2<8,0,CHOOSE(ROUNDDOWN(A2/8,0),1,2,3,4,5,6,7,8,9,10)&" day(s)")


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
I actually think I got it working with a lookup

=LOOKUP(B10,{0,24,26,29,32,37,41,47,57,73,94},{0.1 36,0.133,0.13,0.127,0.124,0.121,0.119,0.116,0.113, 0.11,0.107})

that's a different thing im working on but It should work when I try it on the two scenarios I mentioned above
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
What if scenario Andrey Excel Discussion (Misc queries) 0 January 4th 07 03:38 PM
scenario/what if ?? MikeR-Oz New Users to Excel 2 November 24th 06 11:33 AM
Scenario? simmerdown Excel Worksheet Functions 6 January 25th 06 10:05 PM
IF Scenario will.00 Excel Worksheet Functions 1 June 15th 05 10:38 AM
Scenario ExcelMonkey[_51_] Excel Programming 0 January 30th 04 10:04 PM


All times are GMT +1. The time now is 05:41 PM.

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"