#Value! problem

nickharr

Active Member
Joined
Apr 8, 2008
Messages
251
Office Version
  1. 2019
Platform
  1. Windows
I wonder if someone could help me with sorting out a formular that will allow a cell to a zero rather than #Value!.
To make things simple - I have 5 columns - A has the Product Name, B has the Number Ordered, C has the price of the product, D has the Number delivered and E is the total of the products ordered (B1*D1).
I need to put in column D the words "Out of Stock" if a product cannot be delivered. If I do this I get #Value! in the cell E1 whereas I would like it to be taken as a zero and therefore E1 would also show a zero.
I realise the simplest way would be to put in a zero instead of "Out of Stock" but this would mess up other parts of the sheet if I did!
If anyone could help I would be most grateful.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
the B1*D1 formula, shouldn't that be B1*C1??
number of products ordered times number of products delivered seems meaningless to me, no?

How do you determine if a product cannot be delivered?
 
Upvote 0
Sorry for my mistake - you are quite right - it actually should have been the price of the product (C) multiplied by the number delivered (D).
However, after your suggestion (Aladin) of puting in C1*n(D1) - it looks like working a treat - thanks very much!
 
Upvote 0
Sorry for my mistake - you are quite right - it actually should have been the price of the product (C) multiplied by the number delivered (D).
However, after your suggestion (Aladin) of puting in C1*n(D1) - it looks like working a treat - thanks very much!

You are welcome. Thanks for providing us feedback.
 
Upvote 0
Hello again - I thought I had put this further query on this thread but can't see it so I probably pressed the wrong button!
Just as a follow up - on this same sheet I do have a fair number of other columns and in one of them I need to divide a coloumn with the total costs plus carriage etc. For simplicity I will call it column F - so I need to divide F1/D1 and at the moment it comes up with #Value! and I need it to come up with a zero. I tried F1/n(D1) but then it comes up with #Div/0!.
Any thoughts?!
 
Upvote 0
Hello again - I thought I had put this further query on this thread but can't see it so I probably pressed the wrong button!
Just as a follow up - on this same sheet I do have a fair number of other columns and in one of them I need to divide a coloumn with the total costs plus carriage etc. For simplicity I will call it column F - so I need to divide F1/D1 and at the moment it comes up with #Value! and I need it to come up with a zero. I tried F1/n(D1) but then it comes up with #Div/0!.
Any thoughts?!

=IF(N(D1),F1/N(D1),0)

If F1 also might house text values...

=IF(N(D1),N(F1)/N(D1),0)
 
Upvote 0
Once again Aladin - you have come up trumps! Really appreciate your help.
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,319
Members
452,905
Latest member
deadwings

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