Excel Help With Line Items!

Stuck on this one.

Let's say you have three years of P&Ls (or BS) for a company and want to consolidate onto one sheet for modeling purposes. Lookup formulas are my native language, but I can't configure a way to consolidate line items if they're changing year-to-year.

For example, a simple line item scenario where items may be added/subtracted:

In year 1:

401K
Legal Fees
X Program Expense
Total Expenses

In year 2:

Legal Fees
X Program Expense
Total Expenses

In year 3:

401K
Legal Fees
X Program Expense
Interest expense
WSO Payment
Total Expenses

How can I, either via formula or advanced sort for unique values somehow generate a unique list with the items in their appropriate spot, like below- with ALL values:

401K
Legal Fees
X Program Expense
Interest Expense
WSO Payment
Total Expenses

If I put all of the values in one column sort for unique it gatheres unique at the bottom...requiring manual placement.

Any ideas?!

 

How are your VBA skills?

But to get this straight... I'm going to kind of exaggerate a little to make sure I get what you're trying do.

Year 1 X expense - $123 Y Expense - $456

Year 2 A Expense - $214 B Expense - $876

Year 3 Q Expense - $654 A Expense - $123 Y Expense - $142

And you want to turn it into a consolidated over the years so it would look like this....

A Expense - $337 B Expense - $876 Q Expense - $654 X Expense - $123 Y Expense - $598

make it hard to spot the general by working like a soldier
 

If you knew VBA it would be easiest I'd imagine. Maybe post something on one of the coding forums. Whenever I've had an issue someone would help me out in a day or two. Sometimes writing a whole macro for me even.

I'll try and figure something out not using VBA. I haven't coded in a while so it'll probably take me longer to figure it out that anyways.

make it hard to spot the general by working like a soldier
 

Pariatur et aut sit consequatur sed sunt vitae. Cumque alias fugit quia vero. Eligendi et ipsum occaecati maiores numquam accusamus neque.

Dolore facere est et quisquam rerum. Sint et labore totam consequuntur. Velit ratione qui nesciunt sunt fugit libero. Voluptas minima corporis culpa fuga dolores.

Tempora sed cupiditate aut consequatur. Nihil aliquid voluptate et voluptatem in. Officiis numquam est excepturi facere.

Eveniet reiciendis consequatur et iusto tempore laudantium et. Et quia aut mollitia dicta. Impedit omnis ea molestiae vel vitae est omnis. Voluptas sequi consequuntur iure consequatur tenetur quaerat nulla. Quia voluptatem ea qui repudiandae.

Career Advancement Opportunities

April 2024 Investment Banking

  • Jefferies & Company 02 99.4%
  • Goldman Sachs 19 98.8%
  • Harris Williams & Co. New 98.3%
  • Lazard Freres 02 97.7%
  • JPMorgan Chase 03 97.1%

Overall Employee Satisfaction

April 2024 Investment Banking

  • Harris Williams & Co. 18 99.4%
  • JPMorgan Chase 10 98.8%
  • Lazard Freres 05 98.3%
  • Morgan Stanley 07 97.7%
  • William Blair 03 97.1%

Professional Growth Opportunities

April 2024 Investment Banking

  • Lazard Freres 01 99.4%
  • Jefferies & Company 02 98.8%
  • Goldman Sachs 17 98.3%
  • Moelis & Company 07 97.7%
  • JPMorgan Chase 05 97.1%

Total Avg Compensation

April 2024 Investment Banking

  • Director/MD (5) $648
  • Vice President (19) $385
  • Associates (87) $260
  • 3rd+ Year Analyst (14) $181
  • Intern/Summer Associate (33) $170
  • 2nd Year Analyst (66) $168
  • 1st Year Analyst (205) $159
  • Intern/Summer Analyst (146) $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
Betsy Massar's picture
Betsy Massar
99.0
4
Secyh62's picture
Secyh62
99.0
5
GameTheory's picture
GameTheory
98.9
6
CompBanker's picture
CompBanker
98.9
7
dosk17's picture
dosk17
98.9
8
kanon's picture
kanon
98.9
9
Linda Abraham's picture
Linda Abraham
98.8
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...”