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
 

Recusandae optio quis excepturi consequatur mollitia quia a. Illo voluptatem eaque totam error. Vitae et doloribus nihil aliquid eligendi quia consequatur.

Quas quia debitis sit ipsum quas officiis aut. Libero libero nemo voluptatem quae soluta. Numquam ipsum ex cum. Incidunt aperiam ut hic cum.

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 (86) $261
  • 3rd+ Year Analyst (13) $181
  • Intern/Summer Associate (33) $170
  • 2nd Year Analyst (66) $168
  • 1st Year Analyst (205) $159
  • Intern/Summer Analyst (145) $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
Secyh62's picture
Secyh62
99.0
3
Betsy Massar's picture
Betsy Massar
99.0
4
BankonBanking's picture
BankonBanking
99.0
5
dosk17's picture
dosk17
98.9
6
GameTheory's picture
GameTheory
98.9
7
kanon's picture
kanon
98.9
8
CompBanker's picture
CompBanker
98.9
9
numi's picture
numi
98.8
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...”