#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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")) |
#3
|
|||
|
|||
=IF(A1 = "", "", IF(B1 > CHOOSE(2,4,10,16), "Fail", "Pass"))
A slight modification to CGM3's post, works for me. HTH |
#4
|
|||
|
|||
Actually that doesn't work either, cannot create a fail condition
|
#5
|
|||
|
|||
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") |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[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 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 |
saving data in excel 2010 from excel 2003 | johnkcalg | Excel | 1 | 02-06-2012 07:33 PM |