Multiple Function

japturtle

New Member
Joined
Oct 5, 2011
Messages
12
I have a working function and need to add another to it if possible, please help!

Current Function:

=IF(OR(C4=C3, C4=C5),"","no lunch")

I want to add:

If H4 is greater than or equal to 6
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Thanks for the reply, but it didn't work... Here are more details if it helps!

<TABLE style="WIDTH: 336pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=448 x:str><COLGROUP><COL style="WIDTH: 48pt" span=2 width=64><COL style="WIDTH: 48pt" span=3 width=64><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" height=17 width=64>



</TD><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl24 width=64 align=right x:num="40280">4/12/2010</TD><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl25 width=64 align=right x:num="0.47916666666666669">11:30</TD><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl25 width=64 align=right x:num="0.67708333333333337">16:15</TD><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl25 width=64 x:str=""></TD><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 48pt; BACKGROUND: red; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8; mso-ignore: style; mso-pattern: auto none" width=64>no lunch</TD><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" class=xl25 width=64 align=right x:num="0.19791666666666669" x:fmla="=D1-C1">4:45</TD></TR></TBODY></TABLE>

Column C4= 4/12/2010
Column D4= 11:30
Column E4= 16:15
Column G4= No lunch (in red)
Column H4= 4:45

I don't want anything in G4 if H4 is less than or equal to 6
 
Upvote 0
Well thats a bit different from the first question.

try this formula: IF(H4<=TIME(6,0,0),"","no lunch")

/Anders
 
Upvote 0
Thanks exAHSacto! It worked... I realized I did say the complete opposite on my first post but figured I could switch the symbol around :confused:... thanks again!

I have another function I need to figure out, here goes...

If:

A B C D
4/1/11 10:00 12:00
4/1/11 13:00 18:00 8 hrs
4/2/11 10:00 14:00 4 hrs
4/3/11 10:00 12:30
4/3/11 13:00 17:30 7.5 hrs

How do I create a function to get the answers listed above in Column D?? Where Column D is the value of the start and stop times in one day?
 
Upvote 0
The answer in column D2 is the result of C2-B1.

I currently have it as:

=C2-B1

But this causes D column to have the following answers:

2 hrs
8 hrs
4 hrs
2.5 hrs
7.5 hrs

I only want one daily total... not per shift total.
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,896
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top