This formula does not seem to be accepted the formula below as a working formula, error msg.
=IF(OR(E2=”Project 1″,E2=”Project 2″,E2=”Project 3″),G2-F2,(G2-F2)*0.5)
It should give sum in column G, except for Admin, which should return 1/2 sum.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » If/Or formula- why does this not work
Len,
I’ve always had problems with evaluating text strings in this manner. Here’s a work around that works by stripping the text and also allows for trailing blanks.
=(G2-F2)*(IF(VALUE(RIGHT(TRIM(E2),1))<4,1,0.5))
This solution, however, does not allow for the return of a less than 1 Project number…
I hope this helps.
RG
Interesting!
With Win 7 and Excel 2003 SP-3 I get as shown below when I typed the formula in.
The first time I tried it by pasting it in it acted like it was text. Then I edited it and deleted to the left of the Equal sign which provided the “The formula you typed contains an error.” error box
When I pasted in AKW’s version it worked fine! I wonder what my old eyes are not seeing?
RG
Nice trick Rory! Now I see what I missed in my post above the E2= is missing on Project 3!
RG
h:mm is in Days so 15 hours + 10 Hrs and 50 min would become 1 Day 1 Hour and 50 Min
with the h:mm format this would show as 1:50 because there are NO days in the format.
[h]:mm is in hours as total duration so it would show as 25:50
I think the 32.45 was probably 32:45 which is 32 Hrs and 45 Min which is the same as 32.75 Hours
AKW,
Thanks.
Is there a custom format for the hours with fraction [32.75] , not Hrs:minutes ? In other words, another method besides multiplying by 24?
I just realized the :45 = .75 connection and was going to post my epiphany when I saw AKW’s response, but his explanation of the [ ] function in format and how Excel handles h:mm was very informative and helpful.
Side note:
Every contributor to this forum is informative and helpful. I am sure everyone who posts questions in this forum is appreciative of your efforts. I sure am.
Len
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.
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.
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.
Notifications