Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2013, 03:07 AM
Abarxax Abarxax is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 64bit
Novice
Help with a Nasty IF Statement
 
Join Date: Dec 2013
Posts: 8
Abarxax is on a distinguished road
Red face Help with a Nasty IF Statement

Hi Guys,

I was wondering if someone could give me a hand figuring out the logic for this formula.

Basically I need to find when an employees promotion date is I have their start date as well as the number of days worked.

Now I managed to figure out if I did Start Date + 730 - Today() which gave me the number of days til next promotion (the 730 is 2 years the first increment on the promotion scale) then I did the Start Date + Number of days til promotion (calculated from the above formula) to get my promotion date which works but however I need it to check that if they have worked more than 2 years check the next increment on the promotion scale.



If anyone has any thoughts I would be most appreciative it is driving me wild :P.
Reply With Quote
  #2  
Old 12-06-2013, 09:04 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Hi and welcome

could you please be a little more specific and post a sample sheet showing BEFORE and AFTER ?

Be also aware that adding 730 days does not account for leap years. Is that important?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 12-06-2013, 09:08 AM
BobBridges's Avatar
BobBridges BobBridges is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

How many promotions are there, Abarxax? I'm thinking maybe a lookup would be more flexible. See the attached example.

The thing is, you have to embed a number of IFs for each promotion level. A lookup is easier to maintain and to follow. But if you still want to learn how to embed IF statements one inside the other, feel free to insist .
Attached Files
File Type: xlsx x.xlsx (12.5 KB, 17 views)
Reply With Quote
  #4  
Old 12-10-2013, 03:33 AM
Abarxax Abarxax is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 64bit
Novice
Help with a Nasty IF Statement
 
Join Date: Dec 2013
Posts: 8
Abarxax is on a distinguished road
Default

Thanks for your replies I have upload a copy of the spreadsheet.
Attached Files
File Type: xlsx To Work On.xlsx (40.6 KB, 15 views)
Reply With Quote
  #5  
Old 12-10-2013, 06:43 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Could you please
1 Get rid of the merged cells ( nothing but trouble, why MS implemented them is a mystery)
2 Add the BEFORE and AFTER you need in a visible way?

Thx
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #6  
Old 12-10-2013, 07:07 AM
Abarxax Abarxax is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 64bit
Novice
Help with a Nasty IF Statement
 
Join Date: Dec 2013
Posts: 8
Abarxax is on a distinguished road
Default

I have gotten rid of the the merged cells but I'm not entirely sure what you mean by a visual before and after?
Attached Files
File Type: xlsx To Work On.xlsx (40.5 KB, 11 views)
Reply With Quote
  #7  
Old 12-10-2013, 09:38 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Is it the next promotion date you are trying to find?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #8  
Old 12-10-2013, 09:53 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Does the attached ( see colored zones on the Employees tab ) go in the right direction?
Attached Files
File Type: xlsx To Work On(1).xlsx (38.9 KB, 10 views)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #9  
Old 12-10-2013, 10:05 AM
Abarxax Abarxax is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 64bit
Novice
Help with a Nasty IF Statement
 
Join Date: Dec 2013
Posts: 8
Abarxax is on a distinguished road
Default

Thanks for your reply it the highlighted section is the current pay grade they are on that seems to have fixed the issue but would you please explain the function for me so I can follow what you did sorry to be a pain I wasn't expecting such comprehensive help. it is greatly appreciated.
Reply With Quote
  #10  
Old 12-10-2013, 10:18 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

The LOOKUP¨function looks for the value TODAY()-M2 ( length of service) in the first range ( callled Lookup_vector).
If not found it looks for the first number larger than said value, and returns the value with the same position in the second range( called result_vector).
For this to work values in the lookup_vector must be placed in ascending order.

This link will also help.

An INDEX/MATCH combination might also work
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #11  
Old 12-11-2013, 03:10 AM
Abarxax Abarxax is offline Help with a Nasty IF Statement Windows 7 64bit Help with a Nasty IF Statement Office 2010 64bit
Novice
Help with a Nasty IF Statement
 
Join Date: Dec 2013
Posts: 8
Abarxax is on a distinguished road
Default

Excellent Thanks for the help it is greatly appreciated.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a Nasty IF Statement If statement and drop down Anja Word 5 11-21-2013 11:32 PM
Help with a Nasty IF Statement SumIFS statement (not sure if it is right use) sweetcuda Excel 13 08-26-2013 11:09 AM
Help with a Nasty IF Statement Help with IF Statement limpbizkit Excel 4 02-24-2011 09:16 PM
Help with a Nasty IF Statement if statement piper7971 PowerPoint 1 08-19-2010 07:10 AM
Help with a Nasty IF Statement Help with IF statement! CPelkey Word 1 04-12-2010 09:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft