Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to pull all the data on the "right" of a column with certain value in the header

$
0
0

I am trying to pull out certain columns of information from a autogenerated report for further analysis. I will need to only pull certain columns based on the header values.

Here is the link to the sheet with the sample data and the formula tab where i am working on.

https://docs.google.com/spreadsheets/d/1S9trBPD-si2wK_LjcUTzB7GTQB99FXgWPQdbn4jNNGY/edit?usp=sharing

Report doesnt always follow the same order and to make things worse for certain columns, the header value also changes. Example : in "Data" tab, from coulmns C onwards, the values keep changing based on which quarter the report is run on.

column C to H

I have already managed to pull the first column by using the below formula, as the column header is always fixed for this. (Have applied it in A1 in "Formula" tab)

=ifna(index(Data!$A$1:$H, 0, match("Building",Data!1:1,0)), "-")

But for the next part i need to pull all data from the column thats mentioned as "Qtr End", D1 in this example, as well as any data thats on the right of that column as well. in other words, everything from column D to H from the Data tab.

I am partially able to pull just the "Qtr End" column by modifing the same formula as shown below.

=ifna(index(Data!$A$1:$H, 0, match("*Qtr*",Data!1:1,0)), "-")

But how can i modify the formula to also pull all the columns right of this as well?

Thanks in advance for the help!!

Ramya


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>