Share via

Creating a formula with ISERROR

Anonymous
2015-04-28T15:07:52+00:00

Hi,

I have the following formula which I am trying to use with an ISERROR function and it doesn't seem to matter what I do, it just won't work.

The formula I currently have is:

=IF($S$26="$",SUM(ROUND(K20*$S$4,2)),"")

But this brings up the #VALUE! error if the "$" is showing in S26.  I need this cell to calculate if there is a $ and if anything else then leave blank.

I thought by added the ISERROR function this would fix it but Excel keeps saying there are things missing. 

Any help would be gratefully received.

Many thanks,

Kath

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2015-04-28T15:55:32+00:00

    Thank you for your reply.  

    Actually, now you've said that, its quite obvious and both cells returned "false". However, both cells already contain forumlas and it I think that the K20 one is the problem.  I have other cells which have the same formula as K20 but they work because the cell in column J has no calculation in it already.

    in K20    =IF(ISERROR(J20*I20),"",(J20*I20))

    in S26    =IF(M59="USD","$",IF(M59="STERLING","£"))

    I'm basically trying to show/hide information based on the currency.  

    If its USD then I need the cell to preform a calculation based on a value in J20*S4 which is the exchange rate and if its Sterling (or a £ sign) then do/show nothing.

    Not sure if this makes sense, but thanks for your help,

    Kath

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2015-04-28T15:18:29+00:00

    Hi,

    The problem is with either K20 or S4 or both and I suspect one or both of then is a text value that looks like a number.

    Put this in an empty cell

    =isnumber(K20)

    and

    =isnumber(S4)

    Both of those should return TRUE but if they return false then the value in that cell is text.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2015-04-28T15:18:16+00:00

    Hi, could you provide an example of your data, formula make no sense you apply sum but there is no range to sum

    Was this answer helpful?

    0 comments No comments