Formulas advanced

  • Thread starter Thread starter Patty Grimm
  • Start date Start date
P

Patty Grimm

I am creating a worksheet and would like to use letters or specific numbers
(such as X=1,200 or 1=1,200. 2=800 and 3=400) to represent values.

Mentor: Sally Sue 1 2 3 formula to
reflect total amount

Does anyone know how do to this?
 
Patty,

If you used 3 = 1200, 2 = 800, and 1 = 400, you could use

=SUM(B2:D2)*400

If you still want 1 = 1200 etc, then array enter (enter using Ctrl-Shift-Enter)

=SUM((4-B2:D2)*400)

If your values aren't so well organized, then you would need a different formula.

HTH,
Bernie
MS Excel MVP
 
hi
your example is a tad confusing but maybe this will give you ideas...
=if(c1=1,200,if(c1=2,800,if(c1=3,400,0)))

if you want the cell to display nothing, replay the last zero with "".
you can have up to 7 if's in 2003. 16 in 2007(i'm told)

Regards
FSt1
 

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