part number entered pulls corresponding cost/description

TRACYJO

New Member
Joined
May 18, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
hello Im trying to build a data base of parts warranty info. what im looking to do is when I select a part number via drop down menu in the 'part number' column, the corresponding description and cost columns in the same sheet are automatically filled in. my image below... the PN# column is a drop down from a parts library that shows part numbers. when I select the part number I want the descripton and cost from that same parts library sheet to fill in on the new sheet.
 

Attachments

  • Screenshot 2024-03-18 134413.png
    Screenshot 2024-03-18 134413.png
    75.9 KB · Views: 12

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
where is the part cost and description per PN number held - not following the image very well

I suspect you want an index / match or maybe with 365 a filter()

=Index ( column with the part cost to return , match( ID , column with all the IDs and partcost etc , 0))
and the same for description
=Index ( column with the part description to return , match( ID , column with all the IDs and partdescription etc , 0))

maybe an xlookup()

Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
the part number, cost and description are on a tab in this workbook. (tab 3) the summary in the image is tab 1
 
Upvote 0
Here's an example using Vlookup and named ranges.
2023-03-18_2.xlsx
ABCDEFGHIJK
1QTYPN#DESCRIPTIONVENDORISSUESOURCELABOR HOURSBUYBPART COSTTOT PART COSTLABOR COST
21CD34WingnutWe're Nuts$2.00$2.00
32AB12WidgetACME$1.00$2.00
4    
5    
6    
7    
8    
9
10
11
12
13
14
15SOURCE LISTS
16PN#DESCRIPTIONVENDORPART COST
17AB12WidgetACME$1.00
18BC23SprocketParts Store$1.50
19CD34WingnutWe're Nuts$2.00
20DE45ThingyThings 'N' Stuff$2.25
21EF56WhatsitACME$3.00
22FG67DoohickyParts Store$3.75
23GH78ThingamabobThings 'N' Stuff$4.00
Sheet1
Cell Formulas
RangeFormula
C2:C8C2=IFERROR(VLOOKUP($B2,$B$16:$E$23,2),"")
D2:D8D2=IFERROR(VLOOKUP($B2,$B$16:$E$23,3),"")
I2:I8I2=IFERROR(VLOOKUP($B2,$B$16:$E$23,4),"")
J2:J8J2=IFERROR(I2*A2,"")
Named Ranges
NameRefers ToCells
DESCRIPTION=Sheet1!$C$17:$C$23I2:I8, C2:D8
PART_COST=Sheet1!$E$17:$E$23I2:I8, C2:D8
PN=Sheet1!$B$17:$B$23I2:I8, C2:D8
VENDOR=Sheet1!$D$17:$D$23I2:I8, C2:D8
Cells with Data Validation
CellAllowCriteria
B2:B8List=PN
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,571
Members
452,652
Latest member
eduedu

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