In Excel, how can I let 1 * a = a?

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

Hi everyone,

Say I have two cells, one has a value (0 or 1), and the second has a
text abrevation such as a or b,....etc.

A B
1 ab
0 ca
1 dd
1 ww


When I type A1*B1, for example, I get #VALUE! stuff!!

How can let it come out like this?

ab
0
dd
ww

Regards,
Mike
 
=IF(A1, B1, A1)

should do it

or more explicitly

=IF(A1=1, B1, 0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top