Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
mns mns is offline
external usenet poster
 
Posts: 23
Default Excel formulation to automate values

Hi there,
I have a little problem on arranging a small multi-worksheet excel here.
Let me explain in a short way then give some details on it.
I am trying to make an offers recordsheet which has two worksheets in it. One
for products(and their base prices) and an offer sheet. I would like to use
a bit dynamic data here. So when I type the name of the product excel would
give me the price from other worksheet.

in details;
Prices worksheet is something like:
A B
1 Product BasePrice
2 mouse 5
3 keyboard 8
4 ...

And the Offers sheet is like:

A B C D
1 OFFER1 blank blank blank
2 Product BasePrice Quantity Cost
3 mouse 5 2 10
4 keyboard 8 4 32
5 TOTAL 42

when i type mouse in A column I'd like excel to fill the BasePrice value
from Prices worksheet and when I change the value it keep updating the prices
on Offers worksheet.

Not sure if we need a macro to achieve this or not. Tried it with name
things, tried some vlookup but as you can guess I am stuck here. I'd be
thankful if someone could give me a hand here.

Thank you

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Excel formulation to automate values

Put this in B3 of the Offer sheet:

=IF(A3="","",VLOOKUP(A3,Prices!A:B,2,0))

and in D3 you can put:

=IF(OR(B3="",C3=""),"",B3*C3)

Then you can copy these down as far as you need.

I've assumed that you will type a valid product name in column A, but
if you don't then you will get #N/A.

Hope this helps.

Pete

On Feb 18, 6:53*pm, mns wrote:
* Hi there,
I have a little problem on arranging a small multi-worksheet excel here.
Let me explain in a short way then give some details on it.
I am trying to make an offers recordsheet which has two worksheets in it. One
for products(and their base prices) and an offer sheet. I would like to use
a bit dynamic data here. So when I type the name of the product excel would
give me the price from other worksheet.

in details;
Prices worksheet is something like:
* * * *A * * * * * * * * B
1 * Product * * * *BasePrice
2 * *mouse * * * * * *5
3 * *keyboard * * * *8
4 ...

And the Offers sheet is like:

* * * * A * * * * * * * * B * * * * * * * * *C * * * * * * *D * * * *
1 * OFFER1 * * * * blank * * * * * * blank * * * * blank
2 * Product * * * *BasePrice * * *Quantity * * *Cost
3 * *mouse * * * * * *5 * * * * * * * * *2 * * * * * * 10
4 * *keyboard * * * *8 * * * * * * * * *4 * * * * * * *32
5 * * * * * * * * * * * * * * * * * * * * * * TOTAL * * 42

when i type mouse in A column I'd like excel to fill the BasePrice value
from Prices worksheet and when I change the value it keep updating the prices
on Offers worksheet.

Not sure if we need a macro to achieve this or not. Tried it with name
things, tried some vlookup but as you can guess I am stuck here. I'd be
thankful if someone could give me a hand here.

Thank you


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Excel formulation to automate values

You want to use VLOOKUP; I think you would put the following formula in the B
column of the Offers sheet:

=VLOOKUP($A2,'Prices Worksheet'!$A:$B,2,FALSE)

This would look up the value in $A2 in the A column of the Prices Worksheet
and insert the associated value from the (2) second column of the specified
range A:B. The FALSE forces an exact match.



As sort of an aside/follw-on, you may want to use Data validation on the A
column in the Offers Worksheet. You would enforce list validation and point
the list source to the A column in the Prices Worksheet. The way to do this
changes depending on your version of Excel, so MS help is probably your best
bet for finding this.

Finally, lock the prices worksheet when you are done with it so it cannot be
modified.

Hope that helps.



"mns" wrote:

Hi there,
I have a little problem on arranging a small multi-worksheet excel here.
Let me explain in a short way then give some details on it.
I am trying to make an offers recordsheet which has two worksheets in it. One
for products(and their base prices) and an offer sheet. I would like to use
a bit dynamic data here. So when I type the name of the product excel would
give me the price from other worksheet.

in details;
Prices worksheet is something like:
A B
1 Product BasePrice
2 mouse 5
3 keyboard 8
4 ...

And the Offers sheet is like:

A B C D
1 OFFER1 blank blank blank
2 Product BasePrice Quantity Cost
3 mouse 5 2 10
4 keyboard 8 4 32
5 TOTAL 42

when i type mouse in A column I'd like excel to fill the BasePrice value
from Prices worksheet and when I change the value it keep updating the prices
on Offers worksheet.

Not sure if we need a macro to achieve this or not. Tried it with name
things, tried some vlookup but as you can guess I am stuck here. I'd be
thankful if someone could give me a hand here.

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.misc
mns mns is offline
external usenet poster
 
Posts: 23
Default Excel formulation to automate values

what do you mean by locking the prices? :)

"Rad131304" wrote:

You want to use VLOOKUP; I think you would put the following formula in the B
column of the Offers sheet:

=VLOOKUP($A2,'Prices Worksheet'!$A:$B,2,FALSE)

This would look up the value in $A2 in the A column of the Prices Worksheet
and insert the associated value from the (2) second column of the specified
range A:B. The FALSE forces an exact match.



As sort of an aside/follw-on, you may want to use Data validation on the A
column in the Offers Worksheet. You would enforce list validation and point
the list source to the A column in the Prices Worksheet. The way to do this
changes depending on your version of Excel, so MS help is probably your best
bet for finding this.

Finally, lock the prices worksheet when you are done with it so it cannot be
modified.

Hope that helps.



"mns" wrote:

Hi there,
I have a little problem on arranging a small multi-worksheet excel here.
Let me explain in a short way then give some details on it.
I am trying to make an offers recordsheet which has two worksheets in it. One
for products(and their base prices) and an offer sheet. I would like to use
a bit dynamic data here. So when I type the name of the product excel would
give me the price from other worksheet.

in details;
Prices worksheet is something like:
A B
1 Product BasePrice
2 mouse 5
3 keyboard 8
4 ...

And the Offers sheet is like:

A B C D
1 OFFER1 blank blank blank
2 Product BasePrice Quantity Cost
3 mouse 5 2 10
4 keyboard 8 4 32
5 TOTAL 42

when i type mouse in A column I'd like excel to fill the BasePrice value
from Prices worksheet and when I change the value it keep updating the prices
on Offers worksheet.

Not sure if we need a macro to achieve this or not. Tried it with name
things, tried some vlookup but as you can guess I am stuck here. I'd be
thankful if someone could give me a hand here.

Thank you

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
automate replace values in formula galiant Excel Discussion (Misc queries) 2 July 9th 06 03:40 PM
If formulation: Is it possible... OSCAR Excel Discussion (Misc queries) 3 December 31st 05 07:53 AM
If formulation OSCAR Excel Discussion (Misc queries) 2 December 31st 05 06:06 AM
How to automate process of replacing values? J. Gutierrez Excel Discussion (Misc queries) 5 November 3rd 05 10:29 PM
Time formulation? LGrobe Excel Discussion (Misc queries) 1 August 16th 05 06:23 PM


All times are GMT +1. The time now is 08:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"