How to make a formula which multiply 2 cells with X as the value of 0

Nellycorn

New Member
Joined
Mar 14, 2022
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hello,
Can anyone please help make formula which I can multiply 2 cells and have X from column A as the value 0 when multiplied, e.g, looks like row 5 from from this Data table. And if possible, make the formula turn the Total Amount as XXX as the value for 0, e.g. look like row 4. If not possible, I'm happy if anyone can just make the formula which X is the value 0 on Column A when multiped with Column B on Column C :)
1647900067040.png
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

Not sure what you mean, your description is a bit confusing.

Use either C2, D2 or E2 formula:
C2 works for Any Text in A, E2 Only works for "X"

Book3.xlsx
ABCDE
1
2610606060
3520100100100
4X0XXX0XXX
5X0XXX0XXX
Sheet1048
Cell Formulas
RangeFormula
C2:C5C2=IF(N(A2),A2*B2,REPT(A2,3))
D2:D5D2=IF(N(A2),A2*B2,0)
E2:E5E2=IF(A2="X","XXX",A2*B2)
 
Last edited:
Upvote 0
Solution
Hi,

Not sure what you mean, your description is a bit confusing.

Use either C2, D2 or E2 formula:
C2 works for Any Text in A, E2 Only works for "X"

Book3.xlsx
ABCDE
1
2610606060
3520100100100
4X0XXX0XXX
5X0XXX0XXX
Sheet1048
Cell Formulas
RangeFormula
C2:C5C2=IF(N(A2),A2*B2,REPT(A2,3))
D2:D5D2=IF(N(A2),A2*B2,0)
E2:E5E2=IF(A2="X","XXX",A2*B2)
Hi, sorry that I made it confusing for you. Despite that, you still managed to help me with the formula I need ? thank you so much. All formulas you made are really helpful. I'll use either C2 or E2 formula for my data ☺️.
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

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