Adding columns under each other while disregarding potential "blanks"

Cama

New Member
Joined
Oct 7, 2020
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Hello everyone, and thank you for reading this message :giggle:

I am currently working on a small project, where I need to find all the data corresponding to a customer in 6 sheets, each being a different year, when typing that customer ID in a specific cell, such as a google search.
I managed to look at that customer ID in 6 sheets, from 2015 to 2020 (Table 1). For this, I used a INDEX and SMALL IF based on the customer ID, changing the year for each column so the formula looks in the correct year sheet. I also gave each column 20 rows, as a customer will never appear more than 20 times each year.
However, depending on the customer researched, the amount of data will vary in each column, creating blanks if it appears less than 20 times. (Table 1)
Moreover, Table 1 is a working table, that I use to gather the data before presenting it in another table. (Table 2)

Now, I would like to create a table in the same sheet, where those columns would go nicely under each other, to create that illusion of historic. (Table 2)
My challenge is, as the amount of data varies depending on the customer and year, the Table 2 will show blanks when I try to add them under each other, using INDEX formula.
My objective is therefore to add those columns under each other, with a formula that would disregard "blanks" despite them being formulas returning no data, and with a number of rows adapting to the table data, and to any new customer ID's data.

If anyone has an idea of how to create such an adaptive table, you will become a true savior ! ;)
Thank you :giggle:

Table 1:

2015​
2016​
2017​
2018​
2019​
2020​
ID15aID16aID17aID19aID20a
ID15bID16bID17bID20b
...ID17c...
ID15nID20n

Table 2:
ID​
ID15a
...
ID15n
ID16a
ID16b
ID17a
...
...
ID20n
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,214,805
Messages
6,121,665
Members
449,045
Latest member
Marcus05

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top