![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 7
|
Okay, I have a list of Item Numbers and their prices.
On another page I have a list of Sales Reps, and how many they sold of each item. For example: This is quantity sold John Item1 2 Item2 3 Item3 5 Jane Item1 3 Item3 2 Rick Item2 3 I need to create a field after the Qty that will check the price based on the item column and multiply it times the Qty column. Whats the best way to do this? [ This Message was edited by: kopernikuz on 2002-05-02 12:50 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
Something like:
=if(c2>0,c2*vlookup(b2,Sheet2!$A$1:$B$20,2,0),"") where: b2 contains the item number c2 contains your item quantity Sheet2!A1:B20 contains your product number and price columns in 20 rows.
__________________
~Anne Troy |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Hellas
Posts: 553
|
Hello There,
In my Humble opinion, i think that when a poster gets his answer , the least he can do is say "thanks, it works" Andreas Nice Work Dreamboat ! |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
Thanks!
__________________
~Anne Troy |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Hellas
Posts: 553
|
You welcome
Andreas |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|