Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Folks,
This may sound easy but it has stumped me. I have a list of max values at the end of a row of 48 columns. I want to find that max value within the row and then copy and paste the header (first row) for the column the max value appears within. I cannot use a LOOKUP function as the data is not sorted and has too many fields to use an if statement. Cheers, RunsWithKnives |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi!
Row 1 are column headers, A1:AV1 A2:AV2 = values AW2 = =MAX(A2:AV2) Find the corresponding header: =INDEX(A$1:AV$1,MATCH(AW2,A2:AV2,0)) If there are duplicate max values the hearder for the first match (left to right) will be returned. Biff "RunsWithKnives" wrote in message ... Hi Folks, This may sound easy but it has stumped me. I have a list of max values at the end of a row of 48 columns. I want to find that max value within the row and then copy and paste the header (first row) for the column the max value appears within. I cannot use a LOOKUP function as the data is not sorted and has too many fields to use an if statement. Cheers, RunsWithKnives |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hey Cheers Biff,
that does the trick and I don't have to punt about with macros. Thanks a bunch, RunsWithKnives "Biff" wrote: Hi! Row 1 are column headers, A1:AV1 A2:AV2 = values AW2 = =MAX(A2:AV2) Find the corresponding header: =INDEX(A$1:AV$1,MATCH(AW2,A2:AV2,0)) If there are duplicate max values the hearder for the first match (left to right) will be returned. Biff "RunsWithKnives" wrote in message ... Hi Folks, This may sound easy but it has stumped me. I have a list of max values at the end of a row of 48 columns. I want to find that max value within the row and then copy and paste the header (first row) for the column the max value appears within. I cannot use a LOOKUP function as the data is not sorted and has too many fields to use an if statement. Cheers, RunsWithKnives |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You're welcome. Thanks for the feedback!
Biff "RunsWithKnives" wrote in message ... Hey Cheers Biff, that does the trick and I don't have to punt about with macros. Thanks a bunch, RunsWithKnives "Biff" wrote: Hi! Row 1 are column headers, A1:AV1 A2:AV2 = values AW2 = =MAX(A2:AV2) Find the corresponding header: =INDEX(A$1:AV$1,MATCH(AW2,A2:AV2,0)) If there are duplicate max values the hearder for the first match (left to right) will be returned. Biff "RunsWithKnives" wrote in message ... Hi Folks, This may sound easy but it has stumped me. I have a list of max values at the end of a row of 48 columns. I want to find that max value within the row and then copy and paste the header (first row) for the column the max value appears within. I cannot use a LOOKUP function as the data is not sorted and has too many fields to use an if statement. Cheers, RunsWithKnives |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to find, copy, and paste until value change | Excel Worksheet Functions | |||
Search, Copy, Paste Macro in Excel | Excel Worksheet Functions | |||
Macro to open workbook and copy and paste values in to orig workbo | Excel Worksheet Functions | |||
Copy & Paste macro | Excel Worksheet Functions | |||
Copy Paste Special Macro | Excel Discussion (Misc queries) |