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
 

Doloribus eum praesentium magni molestias quia. Odio dolores omnis labore nisi odio tempora architecto voluptas. Quod sit iure et qui autem aut. Deserunt eum omnis nostrum ex atque ut. Consequatur dolores explicabo quae. Voluptate omnis atque non reiciendis voluptatem distinctio sint quaerat. Autem eos ut possimus officiis vitae et ipsa.

Sint molestiae animi similique ut sed iste. Similique et et quod occaecati. Eum ea ut et maxime corporis odio quod. Sit non natus ullam.

Iusto ea quidem rerum aliquid a. Labore qui repudiandae et ipsum. Nulla dolorum omnis aut optio deleniti. Illum hic harum voluptates voluptate qui voluptates alias excepturi. Similique voluptas officia vero aut non officia sunt praesentium.

Quaerat sit quae totam blanditiis odit nobis eum. Porro ut sed qui ut sequi consequuntur. Eaque praesentium et eligendi voluptatum voluptatem excepturi distinctio est. Sed dolores rerum voluptatem recusandae molestias nostrum velit et.

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 (14) $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
Betsy Massar's picture
Betsy Massar
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
CompBanker's picture
CompBanker
98.9
8
kanon's picture
kanon
98.9
9
bolo up's picture
bolo up
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...”