Vlook up with match formula

jedilefty

New Member
Joined
Nov 14, 2017
Messages
46
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm new to this forum.
I am trying to create Part and Price data base, where entering in a particular part number and quantity pulls up the serial number and price depending on quantity ordered. I was able to do a VLOOK UP [formula used is "=VLOOKUP(D2,$A$7:$B$61,2,FALSE)"] to find the serial numbers, however the part I'm struggling with is how to pull up the price. The pricing would be from columns L through T, with headers in row 7. Can anyone help please? Not sure how to upload an image of my spreadsheet for a better visual.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Re: Vlook up with match formula help

See if this example helps.

One way to copy part of your spreadsheet is to put a border around the cells you want to copy and then use copy paste.
Excel Workbook
ABCDEF
1Serial # / Qty110152050
2Ser13530251510
3Ser25245403526
4Ser315121085
5Ser44540353025
6
7
8Serial #Ser2
9Qty:18
10Price40
Sheet
 
Upvote 0
Re: Vlook up with match formula help

AhoyNC:

I need the price based on the prices stated in columns L through T to populate in cell D5. The formula provided wasn't exactly what I was looking for. I figured out how to show what my spreadsheet looks like for visual on what i'm trying to explain. So once a qty is entered into D4, based on that quantity for the part# entered into D2, pulls up the pricing. Hope this makes more sense.



ABCDEFGHIJKLMNOPQRST
1
2PART #
3Serial # FORMULA USED FOR SERIAL# IS {=VLOOKUP(D2,$A$7:$B$61,2,FALSE)}
4Qty
5Price
6PRICE PER PIECE
7PART#SERIAL#ALTERNATE P/NREVIEW DATELEAD TIMELINKINVENTORY LVL FA CHARGESETUPMIN CHARG151025501002505001000
81A $ 1,000.00 $ 500.00 $ 350.00 $ 175.00 $ 59.00 $ 40.00 $ 35.00 $ 35.00 $ 35.00
92B $ 980.00 $ 350.00 $ 250.00 $ 100.00 $ 35.00 $ 25.00 $ 15.00 $ 15.00 $ 15.00
103C

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col span="10"></colgroup><tbody>
</tbody>
 
Upvote 0
Re: Vlook up with match formula help

Try:
Excel Workbook
ABCDEKLMNOPQRST
1
2PART #2
3Serial #B
4Qty206
5Price25
6PRICE PER PIECE
7PART#SERIAL#ALTERNATE P/NREVIEW DATELEAD TIMEMIN CHARG151025501002505001000
81A$1,000.00$500.00$350.00$175.00$59.00$40.00$35.00$35.00$35.00
92B$980.00$350.00$250.00$100.00$35.00$25.00$15.00$15.00$15.00
103C
Sheet
 
Upvote 0
Re: Vlook up with match formula help

I copied the formula you provided, and I don't what I might have done wrong. Whenever I type in a quantity in cell D4, it only pulls up the values in column L, no matter what quantity I enter. I see it worked for you in your example, so I'm confused as to why the exact formula will not work on my end. Any ideas?

Formula entered in cell D5 is =INDEX($L$8:$T$9,MATCH($D$3,$B$8:$B$60,0),MATCH($D$4,$L$7:$T$7,1))

TIER 1
PART NUMBERAB
NSN123
QUANTITY25
PART PRICE880
TIER 1
PART NUMBERNSNALTERNATE P/NREVIEW DATELEAD TIME WEEKSCOST SHEET LINKINVENTORY LEVEL151025501002505001000
AB123$880.00$450.00$250.00$150.00$50.00$35.00$30.00$31.00$32.00
AC124$775.00$350.00$150.00$125.00$45.00$30.00$25.00$28.00$30.00
AD125$675.00$250.00$50.00$100.00$40.00$25.00$20.00$26.00$28.00
AE126$550.00$150.00$25.00$75.00$35.00$20.00$15.00$20.00$22.00

<tbody>
</tbody>
 
Upvote 0
Re: Vlook up with match formula help

Ok so I copied the formula you provided and it's only pulling up the values in column L. I see it worked in your example provided, so I'm confused as to why it's not working for me. Any ideas?

formula entered into cell D5 is =INDEX($L$8:$T$9,MATCH($D$3,$B$8:$B$60,0),MATCH($D$4,$L$7:$T$7,1))




TIER 1
PART NUMBERAB
NSN123
QUANTITY25
PART PRICE880
TIER 1
PART NUMBERNSNALTERNATE P/NREVIEW DATELEAD TIME WEEKSCOST SHEET LINKINVENTORY LEVEL 151025501002505001000
AB123 $880.00$450.00$250.00$150.00$50.00$35.00$30.00$31.00$32.00
AC124 $775.00$350.00$150.00$125.00$45.00$30.00$25.00$28.00$30.00
AD125 $675.00$250.00$50.00$100.00$40.00$25.00$20.00$26.00$28.00
AE126 $550.00$150.00$25.00$75.00$35.00$20.00$15.00$20.00$22.00

<colgroup><col><col><col><col><col><col span="3"><col span="9"></colgroup><tbody>
</tbody>
 
Upvote 0
Re: Vlook up with match formula help

Your formula worked for me in the example you posted see formula in red.
However if your part numbers go down to row 60 then you need to increase the INDEX range as in the formula in yellow.
Excel Workbook
ABCDEHKLMNOPQRST
11. TIER 1
2PART NUMBERAB
3NSN123
4QUANTITY25
5PART PRICE150150
6TIER 1
7PART NUMBERNSNALTERNATE P/NREVIEW DATELEAD TIME WEEKS151025501002505001000
8AB123$880.00$450.00$250.00$150.00$50.00$35.00$30.00$31.00$32.00
9AC124$775.00$350.00$150.00$125.00$45.00$30.00$25.00$28.00$30.00
10AD125$675.00$250.00$50.00$100.00$40.00$25.00$20.00$26.00$28.00
11AE126$550.00$150.00$25.00$75.00$35.00$20.00$15.00$20.00$22.00
Sheet
 
Upvote 0
So I think I figured out what was wrong. It had something to do with the formatting of cells L7 - T7. I fixed it and now everything works perfectly. Thank you so much!!! You are a life saver!! (y)
 
Upvote 0
You're welcome. Glad you got it to work. I assumed (not always the best thing to do) what your cells L7 t0 T7 were numeric which they need to be for the formula to work.
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,318
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top