WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

New to Formuals

 
   Home -> Office -> Worksheet Functions RSS
Next:  Function re:Dates in Conditional Formatting  
Author Message
Tanya

External


Since: May 02, 2006
Posts: 69



(Msg. 1) Posted: Fri May 11, 2007 7:33 pm
Post subject: New to Formuals
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

I would like to set up my excel sheet to auto calculate. The problem I have
multiple factors to column B
B C D
1 Product code A 100 ?
2 Product code B 50 ?
3 Product code C 25 ?

I want to be able to have a formula in cell D that will look to see if it's
any of the product codes something like if B1=product code A then (c1*20), or
if B1=product code b then (c1*50)

Thanks in advanced!
Back to top
Login to vote
Max

External


Since: Mar 17, 2004
Posts: 2612



(Msg. 2) Posted: Fri May 11, 2007 8:30 pm
Post subject: Re: New to Formuals [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

First, set up a lookup table in say cols G & H,
eg in G1:H1 down you'd have:
Product code A 20
Product code B 50
Product code C 80
etc

Then you could use in D1:
=C1*VLOOKUP(B1,G:H,2,0)
and copy D1 down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Tanya" wrote:
> I would like to set up my excel sheet to auto calculate. The problem I have
> multiple factors to column B
> B C D
> 1 Product code A 100 ?
> 2 Product code B 50 ?
> 3 Product code C 25 ?
>
> I want to be able to have a formula in cell D that will look to see if it's
> any of the product codes something like if B1=product code A then (c1*20), or
> if B1=product code b then (c1*50)
>
> Thanks in advanced!
Back to top
Login to vote
T. Valko

External


Since: Nov 24, 2006
Posts: 6927



(Msg. 3) Posted: Fri May 11, 2007 11:24 pm
Post subject: Re: New to Formuals [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

How many products are there? If there's only a few you can use a formula
like this:

=C1*IF(B1="A",20,IF(B1="B",50,IF(B1="C",75,0)))

If you have more than a few then you should create a 2 column table like
this:

...........J..........K
1.......A.........20
2.......B.........50
3.......C.........75
4.......D.........65
etc

Then use a formula like this:

=C1*VLOOKUP(B1,J$1:K$4,2,0)

Biff

"Tanya" <Tanya.RemoveThis@discussions.microsoft.com> wrote in message
news:87118D64-AA15-476F-800E-FD9EA71F89A2@microsoft.com...
>I would like to set up my excel sheet to auto calculate. The problem I
>have
> multiple factors to column B
> B C D
> 1 Product code A 100 ?
> 2 Product code B 50 ?
> 3 Product code C 25 ?
>
> I want to be able to have a formula in cell D that will look to see if
> it's
> any of the product codes something like if B1=product code A then (c1*20),
> or
> if B1=product code b then (c1*50)
>
> Thanks in advanced!
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support