Pulling mutliple lines into a formula

tysterdude

New Member
Joined
Mar 21, 2022
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I am trying to create a function that when I enter a part number in Cell B17-B29 it will match that part # to "sheet1" and pull the pricing and description. I have all the pricing for everything on the Sheet 1 attached to this main form. For example the equation I put in was only to test the first line, I did IF(B17=Sheet1!D2,Sheet1!F2*A17), this matches the part# and pulls the pricing thats in the same row and multiplies it based on the quantity I entered. I have another equation for the description column that simply pulls E2 instead of F2 and no multiplying since its text. So basically I need something like IF(B17=Sheet1!D2:D100, pull whatever row that is but column F). I have no idea if this is even a thing that's possible but I imagine there's a function I just don't know about. Attached are images to help you see what I'm poorly describing.
2.png
1.png
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi,

For C17 copied down:

Excel Formula:
=IF(B17="","",VLOOKUP(B17,Sheet1!D$2:E$10,2,0))

For D17 copied down:

Excel Formula:
=IF(A17="","",VLOOKUP(B17,Sheet1!D$2:F$10,3,0)*A17)
 
Upvote 0
Solution
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,866
Messages
6,121,996
Members
449,060
Latest member
mtsheetz

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