Re: 'OR' formula error

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



XL Functions generally pass through errors, so if one argument to the
OR() function is #VALUE!, then OR() will return #VALUE! That's just the
way things work.

If column H is currency, why do you have Text in H3? Is it supposed to
represent zero? If so, return zero in H3 and format it to display $-,
e.g.:

$#,##0.00_);$(#,##0.00);$\-_);@_)



In article <1119877270.978621.79200@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
pmzipko@xxxxxxxxxx wrote:

> I have this formula that produces an error in a column:
> =IF(OR((ROUND(N3,2)=ROUND(H3,2)), TRIM(H3)="$-"),"OK","ERROR!")
> Columns H and N are both currency. If they're equal it's supposed to
> display ok. If there is no value in H it's also supposed to show ok,
> otherwise create an error.
>
> The auditing steps look like this:
> =IF(OR((26.8=ROUND("$- ",2)), TRIM(H3)="$-"),"OK","ERROR!")
> =IF(OR((26.8=#VALUE!), TRIM(H3)="$-"),"OK","ERROR!")
> =IF(OR((#VALUE!), TRIM(H3)="$-"),"OK","ERROR!")
> =IF(OR(#VALUE!, TRIM(H3)="$-"),"OK","ERROR!")
> =IF(OR(#VALUE!, TRIM("$- ")="$-"),"OK","ERROR!")
> =IF(OR(#VALUE!, "$-"="$-"),"OK","ERROR!")
> =IF(OR(#VALUE!, TRUE),"OK","ERROR!")
> =IF(#VALUE!,"OK","ERROR!")
> =#VALUE!
>
> Why would the or statement return an error? Even though there is an
> error in one part, the other returns true. It makes sense that as long
> as one part is true the statement should be true, but that error seems
> to make the whole thing false. Anyone know why this happens?
.



Relevant Pages

  • Re: Sumif problem
    ... This won't work if the account number is an actual number (rather than ... 511111 for example and formatted to display a leading zero. ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • OR formula error
    ... Columns H and N are both currency. ... display ok. ... The auditing steps look like this: ... Prev by Date: ...
    (microsoft.public.excel)
  • Word Mailmerge does not display a ZIP code beginning with a zero.
    ... Even though the ZIP code beginning with zero is formatted as special and zip ... code in the Excel source DB, Word does not display the zero on the letter and ... Prev by Date: ...
    (microsoft.public.word.mailmerge.fields)
  • Dcount Again
    ... How do I add the value of these two dcount statements into one textbox. ... And if no records than display a zero ... Prev by Date: ...
    (microsoft.public.access.forms)
  • Re: Currency/ Number fields
    ... If youo want something special to display on a zero value, ... > Does anyone no of a way that when I create a number or currency field in a ...
    (microsoft.public.access.forms)