Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gizmo
 
Posts: n/a
Default The opposite of IF function gives #VALUE for value = 0

Hi guys,

In the 1st cell (Input!C11) I have 0.00

In the 2nd cell (on another worksheet, merged from 4 cells: F10:I10), I have
a following formula:
=IF(Input!C11<0,Input!C11,"") -- visually, I have a blank cell (that's OK)

Then, in the 3rd cell (once again merged from 4 cells B11:E11, same
worksheet as the 2nd one), I have
=-F10 -- visually I would expect to have also a blank cell, but for some
reason I receive #VALUE. This is only if the Input!C11 = 0.00, for other
values it makes the calculations correctly.

(Moreover, if I modify the formula and put =F10 (positive), then there is no
problem, the cell is blank)

Could you help me on this?
Thanks a lot!


  #2   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

Enter any positive number into Input!C11, and you get same error - because
you are trying to calculate a negative of empty string :-))

Try
=IF(ISNUMBER(F10);-F10;"")


--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"gizmo" wrote in message
...
Hi guys,

In the 1st cell (Input!C11) I have 0.00

In the 2nd cell (on another worksheet, merged from 4 cells: F10:I10), I

have
a following formula:
=IF(Input!C11<0,Input!C11,"") -- visually, I have a blank cell (that's

OK)

Then, in the 3rd cell (once again merged from 4 cells B11:E11, same
worksheet as the 2nd one), I have
=-F10 -- visually I would expect to have also a blank cell, but for some
reason I receive #VALUE. This is only if the Input!C11 = 0.00, for other
values it makes the calculations correctly.

(Moreover, if I modify the formula and put =F10 (positive), then there is

no
problem, the cell is blank)

Could you help me on this?
Thanks a lot!




  #3   Report Post  
gizmo
 
Posts: n/a
Default

Thanks Arvi, your solution works 100% OK!

"Arvi Laanemets" wrote in message
...
Hi

Enter any positive number into Input!C11, and you get same error - because
you are trying to calculate a negative of empty string :-))

Try
=IF(ISNUMBER(F10);-F10;"")


--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"gizmo" wrote in message
...
Hi guys,

In the 1st cell (Input!C11) I have 0.00

In the 2nd cell (on another worksheet, merged from 4 cells: F10:I10), I

have
a following formula:
=IF(Input!C11<0,Input!C11,"") -- visually, I have a blank cell (that's

OK)

Then, in the 3rd cell (once again merged from 4 cells B11:E11, same
worksheet as the 2nd one), I have
=-F10 -- visually I would expect to have also a blank cell, but for

some
reason I receive #VALUE. This is only if the Input!C11 = 0.00, for other
values it makes the calculations correctly.

(Moreover, if I modify the formula and put =F10 (positive), then there

is
no
problem, the cell is blank)

Could you help me on this?
Thanks a lot!






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
Counting Function Dilemma Simon Lloyd Excel Worksheet Functions 0 November 8th 04 03:13 PM


All times are GMT +1. The time now is 09:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"