Formula has stopped working

Jenniibean

New Member
Joined
Dec 7, 2018
Messages
4
Current formula is =A1*B1 and in C1 is the total. A1 contains a number and B1 contains the word "included" but sometimes it is a number value and not text. I formatted column B as a number so the formula was calculating the word "included" as a number but now it has stopped and it's giving me the #VALUE ! error. Tried an example below of what all needs to be calculated.

HELP!

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]5[/TD]
[TD]included[/TD]
[TD]=A1*B1[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2,000[/TD]
[TD]=A1*B1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
=A1*B1 will produce a value error whether column B is formatted to number or not. What is it you want it to produce as =A1*B1 obviously cant be calculated.
 
Upvote 0
Right now added a formula: =COUNTIF(B1,"included")*A1 and this works but it will not work if there is a number value in the B column.
 
Upvote 0
Its not at all clear what you want. You clearly cant multiply 5 by a word. What is it supposed to produce?
 
Upvote 0
If you are trying to sew the two values together, you would use CONCATENATE or &, i.e.
Code:
=A1 & B1

If that does not do what you want, then you need to clarify, because we have no idea what you are trying to do.
If you tell us exactly what you expected results are from your examples, that would probably go a long way in helping us understand exactly what you want.
 
Upvote 0
I really want to multiply column A by column B which both contain numbers but sometimes the word "included" is in column B so if that's the case, i'd like the formula in column C to calculate the word "included" as the number 1.

If that makes sense or is possible.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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