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

 

Enim perferendis expedita illum. Temporibus fugit repellat accusamus. Sunt aliquam iste et amet tempora voluptatem doloribus. Et ea optio quisquam magni aut non sequi.

Odio necessitatibus vel odio doloremque quia id voluptatem. Voluptatem sit omnis eius tempore magni eos vel. Illum et et aut similique voluptatem ut quam. Eveniet minima odit qui voluptatem. Qui voluptas veniam ut nostrum. Occaecati harum dolore nihil laboriosam quaerat.

Career Advancement Opportunities

June 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.8%
  • JPMorgan 01 98.2%
  • Guggenheim Partners 01 97.7%
  • Morgan Stanley 07 97.1%

Overall Employee Satisfaction

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Morgan Stanley 01 98.8%
  • Evercore 01 98.2%
  • BMO Capital Markets 12 97.6%
  • Banco Santander 01 97.1%

Professional Growth Opportunities

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.8%
  • Morgan Stanley 05 98.2%
  • JPMorgan No 97.7%
  • BMO Capital Markets 12 97.1%

Total Avg Compensation

June 2026 Investment Banking

  • Vice President (14) $434
  • Associates (43) $259
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (13) $156
  • 1st Year Analyst (75) $151
  • Intern/Summer Analyst (65) $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
BankonBanking's picture
BankonBanking
99.0
3
kanon's picture
kanon
99.0
4
Secyh62's picture
Secyh62
99.0
5
DrApeman's picture
DrApeman
98.9
6
Betsy Massar's picture
Betsy Massar
98.9
7
CompBanker's picture
CompBanker
98.9
8
dosk17's picture
dosk17
98.9
9
GameTheory's picture
GameTheory
98.9
10
Jamoldo's picture
Jamoldo
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...”