#Value Error

francoiscj1

New Member
Joined
Aug 21, 2017
Messages
33
Office Version
  1. 365
Platform
  1. Windows
I have the following formula:

=IF(OR(D4="Expedite",D4="Urgent"),I4,WORKDAY(EDATE(MAX(H4:M4),IF(G4="Annual",12,IF(G4="Every Two Years",24,IF(G4="Every Three Years",36))))-1,1,Control!$A$1:$A$13)) in Column N

My problems: When a cell in Column G (Frequency) is "One Time", I get the !Value error. When a cell in Column G is "Annual", "Every Two Years" or "Every Three Years", I get the following (12/31/1900, 12/31/1901 or 12/31/1902). My date format is mm/dd/yyyy.

Thank you for your help.
 

Attachments

  • Picture1.png
    Picture1.png
    219.5 KB · Views: 10

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
an easy fix for the #value would be
Excel Formula:
=IFERROR(IF(OR(D4="Expedite",D4="Urgent"),I4,WORKDAY(EDATE(MAX(H4:M4),IF(G4="Annual",12,IF(G4="Every Two Years",24,IF(G4="Every Three Years",36))))-1,1,$A$1:$A$13)),"once")

when i use your formula i am not getting dates in the 1900-1902 range, see below
----------------
Book1
ABCDEFGHIJKLMN
112/25/2023
21/1/2024
37/4/2024frequencyfy22fy23fy24fy25fy26fy27retrain date
411/28/2024Every Three Years11/29/202311/30/2026
512/25/2024Annual8/30/20238/30/2024
61/1/2025Once11/14/2023once
77/4/2025urgentAnnual11/16/202311/16/2023
811/27/2025Every Two Years11/28/202311/28/2025
912/25/2025Annual11/14/202311/14/2024
101/1/2026
117/4/2026
1211/26/2026
1312/25/2026
Sheet1
Cell Formulas
RangeFormula
N4:N9N4=IFERROR(IF(OR(D4="Expedite",D4="Urgent"),I4,WORKDAY(EDATE(MAX(H4:M4),IF(G4="Annual",12,IF(G4="Every Two Years",24,IF(G4="Every Three Years",36))))-1,1,$A$1:$A$13)),"once")
Cells with Data Validation
CellAllowCriteria
G4:G9ListOnce, Annual, Every Two Years, Every Three Years
 
Upvote 0
I can only tell you what I see on my screen even if you don't experience it on your own screen. Thank you for the help.
 
Upvote 0
In future please do not mark a post as the solution when it does not contain one. Thanks.

In your op you show one formula & complain it's returning the wrong values, but the image shows a totally different formula & totally different results.
Which are you actually using?
 
Upvote 0
also, please indicate which version of excel you are using. you can also add this to your profile for future posts.
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,126
Members
453,021
Latest member
Justyna P

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