ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Finding the first and last column with values (https://www.excelbanter.com/excel-discussion-misc-queries/129424-finding-first-last-column-values.html)

Epmo

Finding the first and last column with values
 
I had a list in an excel sheet ordered by name and months. Each column (B..M)
represent a month (Jan thru Dec).

I'm trying to identify the first month of each person that has any value
"0" or <"", and also the last month, but at this point I don't have any
clue.

Any support? thnx

pinmaster

Finding the first and last column with values
 
Hi,

Try this:

First change your months into real dates if they are not already and format
as months. I suggest the first of each month. Then use these formulas:

=MIN(IF((B2:M2<"")*(B2:M2<0),B1:M1))
=MAX(IF((B2:M2<"")*(B2:M2<0),B1:M1))

both formula needs to be entered with Ctrl+Shift+Enter

HTH
Jean-Guy
"Epmo" wrote:

I had a list in an excel sheet ordered by name and months. Each column (B..M)
represent a month (Jan thru Dec).

I'm trying to identify the first month of each person that has any value
"0" or <"", and also the last month, but at this point I don't have any
clue.

Any support? thnx



All times are GMT +1. The time now is 04:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com