ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Information match formula (https://www.excelbanter.com/excel-worksheet-functions/201834-information-match-formula.html)

scott

Information match formula
 
I have two columns of data for 2004-2007; one column has days and the other
column has rainfall data for that day. I want to find the month associated
with the largest rainfall instead of sorting the data in ascending/descending
order. Will VLOOKUP work for this task? I am not familiar with VLOOKUP and
the help in Excel did not offer much guidance.

Thanks!

Bob Phillips[_3_]

Information match formula
 
=TEXT(INDEX(A:A,MATCH(MAX(B:B),B:B,0)),"mmmm")

--
__________________________________
HTH

Bob

"scott" wrote in message
...
I have two columns of data for 2004-2007; one column has days and the other
column has rainfall data for that day. I want to find the month associated
with the largest rainfall instead of sorting the data in
ascending/descending
order. Will VLOOKUP work for this task? I am not familiar with VLOOKUP and
the help in Excel did not offer much guidance.

Thanks!




Shane Devenshire

Information match formula
 
Hi,

If the first column just contains days, not dates, you task will be more
difficult. You would need to tell us how those days are entered: 1-365 or
1-31,1-28,1-31 or Monday, Tuesday... for everyday starting on the first of
the year?

If they are dates, not days, then with the rainfall in B2:B19 and the dates
in A2:A19 you could use the formula already given you:

=INDEX(A2:A19,MATCH(MAX(B2:B19),B2:B19,))

And then just select the cell with the formula and choose Format, Cells,
Number, Custom and type MMM into the Type line.

or if you range name B2:B19 "I" for inches of rain and choose OFFSET
instead of INDEX:

=OFFSET(A1,MATCH(MAX(I),I,),)

Cheers,
Shane

"scott" wrote in message
...
I have two columns of data for 2004-2007; one column has days and the
other
column has rainfall data for that day. I want to find the month associated
with the largest rainfall instead of sorting the data in
ascending/descending
order. Will VLOOKUP work for this task? I am not familiar with VLOOKUP and
the help in Excel did not offer much guidance.

Thanks!




All times are GMT +1. The time now is 05:46 AM.

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