vlookup to match a key word and pull the amount for that line

SwanB

New Member
Joined
Aug 31, 2023
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi all! I am struggling with an excel formula and I hope someone can help me out. What I have is two sheets. One is a Summary sheet and the other is a detailed sheet. What I need is in a cell on the summary sheet to pull a certain number from the detailed sheet. So if on the summary sheet the "Concat column BSMinex name" Matches in the detailed sheet in the "Concat Column" and If there is a "Drilling Contract Other" in the ObjectName column for that concat Name (BSMinex) then give me that $amount in the summary sheet cell of the Drilling contract other. I hope this makes sense.
thanks so much for your time looking into this.

Summary Sheet
1693497604822.png


Detailed sheet
1693497624850.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
this may help

=index('detailed sheet'!$E$2:$E$1000, match(A2&"Drilling Contract Other", 'detailed sheet'!$A$2:$A$1000&'detailed sheet'!$D$2:$D$1000,0))

Book5
ABCD
1
2tsminix154
3bsminix150
Sheet1
Cell Formulas
RangeFormula
D2:D3D2=INDEX('detailed sheet'!$E$2:$E$8, MATCH(A2&"Drilling Contract Other", 'detailed sheet'!$A$2:$A$8&'detailed sheet'!$D$2:$D$8,0))


Book5
ABCDE
1
2bsminixdrilling contract other150
3bsminixa151
4bsminixa152
5bsminixa153
6tsminixdrilling contract other154
7bsminixa155
8bsminixa156
detailed sheet


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
Solution
Thank you so much for your time. I got this to work! thanks for the advice and I will for surely use your suggestions next time I post a question.
Again, thank you so much!
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,064
Members
449,090
Latest member
fragment

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