Having difficulty with the logic of an IF OR statement. In H1 I have 8:30. In I1 I have 7:30. In column F I have this formula =IF(E4>$H$1,E4-$H$1,””) which calculates the difference between time worked and the standard work day (H1). This formula will enter any overtime. If none, it returns a blank cell. However because of my schedule i have some days which are non-standard (I1). What I want to be able to do in column F is write a formula which will calculate any overtime, be it a standard work day or a short day. What I tried was =IF(OR(E4>$H$1,E4-$H1,E4>$I$1,E4-$I$1)). This does not work. What logic am I missing?
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
If Or Statements (XP)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » If Or Statements (XP)
- This topic has 2 replies, 2 voices, and was last updated 16 years, 10 months ago.
Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerJune 25, 2008 at 1:03 am #1114262You’ll have to indicate whether a day is to be compared to a standard day or to a short day, otherwise each time you work less than a standard day, time worked would automatically be compared with a short day, which is not what you want, I suspect.
Let’s say that you enter an “x” in column F, next to time worked, if it is a short day.
The formula would become
=IF(F4="x",IF(E4>$I$1,E4-$I$1,""),IF(E4>$H$4,E4-$H$4,""))
or
=IF(E4>IF(F4="x",$I$1,$H$1),E4-IF(F4="x",$I$1,$H$1),"") -
WSkiazd
AskWoody Lounger
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
24H2 Installer – don’t see ption for non distructive install
by
JP
4 hours, 20 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
10 hours, 32 minutes ago -
How much I spent on the Mac mini
by
Will Fastie
5 hours, 20 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
2 hours, 20 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
16 hours, 24 minutes ago -
Setting up Windows 11
by
Susan Bradley
5 seconds ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
11 hours, 52 minutes ago -
Powershell version?
by
CWBillow
12 hours, 44 minutes ago -
SendTom Toys
by
CWBillow
7 hours, 24 minutes ago -
Add shortcut to taskbar?
by
CWBillow
16 hours, 40 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
1 day, 9 hours ago -
How can I install Skype on Windows 7?
by
Help
1 day, 7 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
14 hours, 40 minutes ago -
We live in a simulation
by
Alex5723
1 day, 23 hours ago -
Netplwiz not working
by
RetiredGeek
1 day, 9 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
2 days, 11 hours ago -
Microsoft is killing Authenticator
by
Alex5723
23 hours, 14 minutes ago -
Downloads folder location
by
CWBillow
2 days, 18 hours ago -
Remove a User from Login screen
by
CWBillow
1 day, 13 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
2 days, 9 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
2 days, 9 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
11 hours, 19 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
2 days, 8 hours ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
1 day, 7 hours ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
2 days, 21 hours ago -
Multiple Partitions?
by
CWBillow
2 days, 22 hours ago -
World Passkey Day 2025
by
Alex5723
18 hours, 51 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
4 days, 7 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
2 days, 8 hours ago -
Cached credentials is not a new bug
by
Susan Bradley
4 days, 11 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.