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

 

Veritatis voluptatem ratione dolores. Consequatur sed aut optio incidunt sequi ut deserunt. Veritatis et qui officia architecto rerum. Aut magnam modi iusto id eligendi.

Architecto quam architecto sint consequatur provident ipsa sed. Corporis et accusamus sed eos. Perspiciatis dolorem odio officiis molestias animi explicabo voluptas. Consequatur dolore excepturi deserunt sed. A vel id ea. Similique veniam ut dolorem distinctio. Aliquam assumenda voluptates repellat sed sed.

Quae natus iste placeat consequatur. Est nemo quia soluta possimus consequatur ut. Suscipit quaerat consequatur est dolores velit. Enim aspernatur deserunt facilis reiciendis cumque. Est molestias odit consequatur. Eligendi rerum libero voluptatem quasi inventore. Aut rerum consectetur et fugit ut cum.

Career Advancement Opportunities

August 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 98.9%
  • JPMorgan 01 98.4%
  • Morgan Stanley 08 97.8%
  • Goldman Sachs 02 97.3%

Overall Employee Satisfaction

August 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Evercore No 98.9%
  • Morgan Stanley 01 98.4%
  • Banco Santander 02 97.8%
  • BMO Capital Markets 12 97.3%

Professional Growth Opportunities

August 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 98.9%
  • Morgan Stanley 06 98.4%
  • Goldman Sachs 01 97.8%
  • JPMorgan 01 97.3%

Total Avg Compensation

August 2026 Investment Banking

  • Vice President (16) $429
  • Associates (48) $259
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (25) $178
  • Intern/Summer Associate (14) $159
  • 1st Year Analyst (83) $151
  • Intern/Summer Analyst (75) $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
DrApeman's picture
DrApeman
98.9
7
GameTheory's picture
GameTheory
98.9
8
Betsy Massar's picture
Betsy Massar
98.9
9
CompBanker's picture
CompBanker
98.9
10
bolo up's picture
bolo up
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...”