Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2013, 12:19 PM
new123 new123 is offline Excel--Help!! Windows 7 32bit Excel--Help!! Office 2010 32bit
Novice
Excel--Help!!
 
Join Date: Aug 2013
Posts: 2
new123 is on a distinguished road
Default Excel--Help!!

In a Business report in which there are 4 stages (1,2,3,4) and each stages has a limit for example:
Stage 1 should only last 2 hours, Stage 2 should only last 4 hours, Stage 3 should only last 10 hours AND Stage 4 should only last 16 hours

SO according to the status reports IN EXCEL:
Stages/ Hours ---- Pass/Fail
3 / 9
2 / 3


4 / 10

So i have to get pass or fail from the report that I have. So take into account what STAGE it is and how much time it SHOULD TAKE(default time: Stage 1 should only last 2 hours, Stage 2 should only last 4 hours, Stage 3 should only last 10 hours AND Stage 4 should only last 16 hours) and how much time it TOOK. So if the hours in Excel exceeded the DEFAULT than fail, else Pass. But it has to compare the stages and hours one by one (I can program this but I can't think this through in Excel).

Please help me out, I know this is kinda CONFUSING. But any help will be appreciated.
Reply With Quote
  #2  
Old 08-28-2013, 07:15 AM
CGM3 CGM3 is offline Excel--Help!! Windows XP Excel--Help!! Office 2007
Advanced Beginner
 
Join Date: Oct 2009
Posts: 38
CGM3 is on a distinguished road
Default

A quick and dirty solution, here assuming the stage number is in Column A and its hours are in Column B, then place in Column C for each row i:

=IF(Ai = "", "", IF(Bi > CHOOSE(Ai,2,4,10,16), "Fail", "Pass"))
Reply With Quote
  #3  
Old 09-04-2013, 05:50 AM
Gary Drumm Gary Drumm is offline Excel--Help!! Windows XP Excel--Help!! Office 2007
Advanced Beginner
 
Join Date: Mar 2012
Posts: 86
Gary Drumm is on a distinguished road
Default

=IF(A1 = "", "", IF(B1 > CHOOSE(2,4,10,16), "Fail", "Pass"))
A slight modification to CGM3's post, works for me.
HTH
Reply With Quote
  #4  
Old 09-04-2013, 06:07 AM
Gary Drumm Gary Drumm is offline Excel--Help!! Windows XP Excel--Help!! Office 2007
Advanced Beginner
 
Join Date: Mar 2012
Posts: 86
Gary Drumm is on a distinguished road
Default

Actually that doesn't work either, cannot create a fail condition
Reply With Quote
  #5  
Old 09-04-2013, 06:16 AM
Gary Drumm Gary Drumm is offline Excel--Help!! Windows XP Excel--Help!! Office 2007
Advanced Beginner
 
Join Date: Mar 2012
Posts: 86
Gary Drumm is on a distinguished road
Default

This works (I moved everything down one row to allow for titles)
my E2=IF(B2>2,"fail","pass")
my E3=IF(B3>4,"fail","pass")
my E4=IF(B4>10,"fail","pass")
my E5=IF(B5>16,"fail","pass")
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel--Help!! [Excel 2007] Building Power Point Slides from data in an Excel Table bremen22 Excel Programming 1 08-07-2013 11:01 AM
Paste special an Excel range into Outlook as an Excel Worksheet charlesh3 Excel Programming 3 02-04-2013 04:33 PM
Excel--Help!! Excel 2011 can't open old Excel 98 or Excel X files FLJohnson Excel 8 05-09-2012 11:26 PM
Excel 2007 custom ribbon not showing in Excel 2010 Paulzak Excel 2 02-17-2012 06:35 PM
Excel--Help!! saving data in excel 2010 from excel 2003 johnkcalg Excel 1 02-06-2012 07:33 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:45 PM.


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