Urgent: need help with VBA

I have a list of about 5000 investors and need to create a new sheet with the names, contact info and description of the investors who have the keyword 'debt' in their description. How would I go about doing this?

18 Comments
 

My apologies, I should have been more specific...

These are the columns in the list I have: Column A (Firm Name) Column B (Location) Column C (Contacts) Column E (Phone) Column G (Email) Column J (Strategies)

I need to cut this list down based on two pieces of criteria 1) Column J must contain 'debt' and 2) Column B must contain specific (city name, country)...

My MD made it clear that he wanted a macro.

 

I don't even understand what you're asking anymore. You first asked about the word debt and now you're introducing another constraint about location. What is your constraint on location?

 

It will, but I imagine the point of the macro is to recreate this for similar reports. In which case, after you record, you need to edit the code any place you see VBA call out specific cells (such as vlookup down to B152). You would need to use something like this:

Dim LR As Long LR = ActiveSheet.UsedRange.Rows.Count Range("B2").AutoFill Destination:=Range("B2:B" & LR) End Sub

This will allow the code to work for any size spreadsheet, instead of whatever number of rows you record. If your MD doesn't need this work repeated, then he is a moron for asking for VBA

 

Nemo ullam et est voluptatem. Aliquam consequatur pariatur rerum. Consequatur et sunt adipisci est.

Blanditiis ab necessitatibus soluta harum quia assumenda. Quia temporibus quaerat dicta qui quod.

Quos dicta eius assumenda vel nostrum ducimus. Qui atque quis quibusdam dolore accusamus optio. Ea et aut ullam magni. Ipsam qui tempore sunt qui quia non quia amet.

Career Advancement Opportunities

July 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • JPMorgan 01 98.3%
  • Guggenheim Partners 01 97.7%
  • Morgan Stanley 07 97.2%

Overall Employee Satisfaction

July 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.9%
  • Morgan Stanley 01 98.3%
  • Banco Santander 02 97.7%
  • BMO Capital Markets 12 97.2%

Professional Growth Opportunities

July 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • Morgan Stanley 06 98.3%
  • Goldman Sachs 01 97.7%
  • JPMorgan 01 97.2%

Total Avg Compensation

July 2026 Investment Banking

  • Vice President (16) $429
  • Associates (46) $258
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (14) $159
  • 1st Year Analyst (80) $150
  • Intern/Summer Analyst (73) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
kanon's picture
kanon
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
Secyh62's picture
Secyh62
99.0
5
dosk17's picture
dosk17
98.9
6
GameTheory's picture
GameTheory
98.9
7
Betsy Massar's picture
Betsy Massar
98.9
8
CompBanker's picture
CompBanker
98.9
9
DrApeman's picture
DrApeman
98.9
10
numi's picture
numi
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”