jholly1984
New Member
- Joined
- Sep 29, 2020
- Messages
- 15
- Office Version
- 2016
- 2010
- Platform
- Windows
Hi everyone.
I am a beginner with excel and could use some formula help if possible.
I am working on a document that tracks website trafffic by month for 5 years (each month is a column).
Some sites have no traffic for some of the months.
What i need to do is have the ability to pull in the FIRST and LAST non blank cell in a given row... then pull the column name (month/year) as the value.
The goal is to be able to say this site was first seen on {Month/Year) and Last Seen (Month/Year).
In some cases its a straight line... a site starts in a given month and dies at a specific time later.
In other cases a site is smaller and could have blanks in the middle of the data set... not just the beginning and end.
So i need a formula that only pulls the first month where a traffic number exists and the last month where traffic exists.
I was able to find one formula that seems to work that pulls in the actual traffic value for the first non blank cell in a row... but I actually need the column name as the output.. not the cell value itself.
=INDEX($B$2:$BE$2,SMALL(IF($B$2:$BE$2<>"",COLUMN($B$2:$BE$2)-COLUMN($B$2)+1),1))
I have been unable to find a similar formula for finding the last non-blank cell in a row.
Any help would be greatly appreciated. Thank you SO MUCH for your time.
I am a beginner with excel and could use some formula help if possible.
I am working on a document that tracks website trafffic by month for 5 years (each month is a column).
Some sites have no traffic for some of the months.
What i need to do is have the ability to pull in the FIRST and LAST non blank cell in a given row... then pull the column name (month/year) as the value.
The goal is to be able to say this site was first seen on {Month/Year) and Last Seen (Month/Year).
In some cases its a straight line... a site starts in a given month and dies at a specific time later.
In other cases a site is smaller and could have blanks in the middle of the data set... not just the beginning and end.
So i need a formula that only pulls the first month where a traffic number exists and the last month where traffic exists.
I was able to find one formula that seems to work that pulls in the actual traffic value for the first non blank cell in a row... but I actually need the column name as the output.. not the cell value itself.
=INDEX($B$2:$BE$2,SMALL(IF($B$2:$BE$2<>"",COLUMN($B$2:$BE$2)-COLUMN($B$2)+1),1))
I have been unable to find a similar formula for finding the last non-blank cell in a row.
Any help would be greatly appreciated. Thank you SO MUCH for your time.