+ Reply to Thread
Results 1 to 5 of 5

replace maximum value of each row into column header value

  1. #1
    Registered User
    Join Date
    01-04-2020
    Location
    Korea
    MS-Off Ver
    excel16
    Posts
    3

    replace maximum value of each row into column header value

    For each ID, I need its maximum value and corresponding buffer distance.
    It has 15000 IDs (column A) with each showing calculated ratio per buffered distance (row 1).
    How can I make another column showing just max value's corresponding buffer distance (row 1), so each ID can contain two values - maximum ratio and corresponding distance?
    Attached Files Attached Files
    Last edited by jinhak0810; 01-05-2020 at 03:31 AM. Reason: attaching file

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,593

    Re: replace maximum value of each row into column header value

    Welcome to the forum.

    Pleae attach the workbook, not a picture of it - instructions at the top of the page. Make sure you show expected results (manually entered).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,593

    Re: replace maximum value of each row into column header value

    Try this:

    =INDEX($B$1:$AO$1,MATCH(MAX($B2:$AO2),$B2:$AO2,0))

    Drag copy down.

  4. #4
    Registered User
    Join Date
    01-04-2020
    Location
    Korea
    MS-Off Ver
    excel16
    Posts
    3

    Re: replace maximum value of each row into column header value

    thank you! it works perfectly

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,593

    Re: replace maximum value of each row into column header value

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] vba excel match replace column header using criteria
    By terriertrip in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2019, 12:27 PM
  2. [SOLVED] looping through columns to find a value then replace said value with column header
    By Sybille in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-22-2018, 10:38 AM
  3. Replies: 7
    Last Post: 10-07-2015, 03:01 PM
  4. [SOLVED] Header of Maximum value formula
    By vij8y in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2012, 03:44 PM
  5. Need a Macro 2 search rows for text and replace with column header...
    By XcelRookie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2012, 05:48 PM
  6. macro to replace specific data with column header text
    By wkilc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-12-2010, 11:52 AM
  7. Replies: 3
    Last Post: 04-18-2006, 12:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1