Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default 2 codes in 1

Hi, i have this code.

=IF(AND(F5="COS",B5--"11:00:00"),IF(K5<B5,"Late","Early")&TEXT(ABS( K5-B5),"hh:mm:ss"),IF(OR(F5="ACE",AND(F5="COS",B5<=--"11:00:00")),IF(J5<B5,"Late
","Early ")&TEXT(ABS(J5-B5),"hh:mm:ss"),""))

The problem is that this code it's working only for "COS" situation. For
"ACE" situation i have to change the referance "K5" and "L5" manually. But
it's time consuming. I need one code for both situations.

i have two groups
("COS" and "COS 1") (referance "K5" and "J5") with "time" (<11:00:00) and
(11:00:00)
and
("ACE", "VAN" and "ACH") (referance "L5") and no "time"

Can this be done?

Thanks in advance!
 
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
VBA codes Emdad Excel Discussion (Misc queries) 4 July 3rd 08 03:18 PM
Help with codes please!! Nick TKA Excel Discussion (Misc queries) 0 April 28th 06 12:47 PM
Bar Codes [email protected] Excel Discussion (Misc queries) 4 August 31st 05 08:12 AM
VBA Codes smck Excel Worksheet Functions 2 May 11th 05 10:03 AM
Zip Codes Queen Excel Discussion (Misc queries) 3 February 18th 05 02:47 PM


All times are GMT +1. The time now is 10:54 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"