#VALUE error help

Floorfiller

New Member
Joined
Jan 3, 2008
Messages
48
Hey guys,

I need some help making this formula work properly.

I have the following:

=IF(OR(D73=" - ",Q73=" - ")," - ", (IF(AND(D73>0,Q73>0),((Q73/D73)-1)," - ")))

this equation is functioning properly for most situations.

1. number to number
2. "-" to "-"

where it is not working is when i end up comparing

3. "-" to number

and I'm getting the #VALUE! error because they aren't similar cell types.

anyone have any thoughts on how to get this to work properly?

i have the OR statement in there because if either of the cells is "-" i want it to default to "-" and stop the comparison, but it doesn't seem to be working.

appreciate your incite.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You have " - " in your formula but are only entering "-" into your cells. The additional spaces you have matter.

Try changing either so that they are the same and the formula will give you the correct result.
 
Upvote 0
Floorfiller, I removed the spaces between the quotes " - " ("-") and it is working as you described.
"i have the OR statement in there because if either of the cells is "-" i want it to default to "-" and stop the comparison, but it doesn't seem to be working."
 
Upvote 0
Thanks guys appreciate it. I was picking this up behind someone else who wrote it so I didn't notice that. It's working great now.
 
Upvote 0

Forum statistics

Threads
1,213,530
Messages
6,114,162
Members
448,554
Latest member
Gleisner2

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