+ Reply to Thread
Results 1 to 16 of 16

Identifying a row name from after finding the row with the highest value

  1. #1
    Registered User
    Join Date
    12-24-2019
    Location
    UK
    MS-Off Ver
    Microsoft 365 business
    Posts
    13

    Identifying a row name from after finding the row with the highest value

    Hi,

    Hope all well! I am really struggling trying to work out the below so I am hoping someone can help.

    Firstly, I'm using Microsoft 365 (business) and running Windows 10.

    I have a situation whereby I have many rows of data every month to analyse.

    So I have, say, 31 rows of data, with the first column being the date of the month, and the first row being the time of day (split by half hour) - so 49 columns in total.

    The data itself is just standard numbers.

    I need to have Excel identify the highest number in all 31 rows and 48 columns - I can do this part easily, however, I need Excel to then reference the date (row title) and the time of day (column title) the highest number occured in i.e. these would be output to two different cells with the time in one cell and the date in another.

    That is the first part!

    I then need to have the row that has been identified as having the highest number in it referenced into a new row (the full row of data, not just the cell with the highest number). And all the data in this newly referenced row needs to be multiplied by 2.

    If anyone can help with this it would be very much appreciated!

    Thanks,

    James

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Identifying a row name from after finding the row with the highest value

    Hello jamesy5. Welcome to the forum.

    That is too much for me to imagine and visualize. We are going to need an Excel workbook upload for this.

    As you are relatively new here you may not have noticed the instructions for doing that. They are in the 'gold' banner at the top of the page.
    Dave

  3. #3
    Registered User
    Join Date
    12-24-2019
    Location
    UK
    MS-Off Ver
    Microsoft 365 business
    Posts
    13

    Re: Identifying a row name from after finding the row with the highest value

    Hello FlameRetired.

    Thanks for your response.

    I have attached an example file.

    Each month I need to identify the highest number (highlighted in yellow).

    In this example, the highest number takes place on 27 December at 08:30 (highlighted in orange).

    That part is fine, however, I then need to have the date and time the highest figure takes place referenced into some cells (in this example C38 and C39).

    Also, for the date the highest figure takes place, I need that full row of data to be referenced underneath the rest of the data - and this data needs to be multiplied by two.

    If you could help it would be very greatly appreciated.

    Thanks,

    James
    Attached Files Attached Files

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Identifying a row name from after finding the row with the highest value

    In Cell B36 and C38
    =INDEX($B$3:$B$33,SUMPRODUCT(($C$3:$AX$33=MAX($C$3:$AX$33))*(ROW($B$3:$B$33)))-ROW($B$3:$B$33)+1)

    In C39
    =INDEX($C$2:$AX$2,SUMPRODUCT(($C$3:$AX$33=MAX($C$3:$AX$33))*(COLUMN($C$2:$AX$2)))-COLUMN($C$2:$AX$2)+1)

    In C36
    =INDEX(C$3:C$33,MATCH($B36,$B$3:$B$33,0))*2

    Copy across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    12-24-2019
    Location
    UK
    MS-Off Ver
    Microsoft 365 business
    Posts
    13

    Re: Identifying a row name from after finding the row with the highest value

    Hi Ace_XL.

    Thanks however, I have copied in the formulas (into the attached file) and receiving the cells that say #SPILL!.

    Also, cells from D39 across appeared to be filled with data that isn't required.

    If you could help that would be great.

    Thanks,

    James
    Attached Files Attached Files

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Identifying a row name from after finding the row with the highest value

    The formulas are all non-array and don't need to be array entered (Simply Enter and not Ctrl+Shift+Enter)

    Only formula in C36 needs to be copied across.

    identifying-a-row-name-from-after-finding-the-row-with-the-highest-value-example2.xlsx

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,093

    Re: Identifying a row name from after finding the row with the highest value

    @Ace_XL
    Both the Sumproduct need to be array entered if you have access to the new Dynamic Array functions, otherwise it tries to return a array into multiple cells.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Identifying a row name from after finding the row with the highest value

    I seem to have interpreted this differently.

    None of these need to be array entered.

    In C38 this will return the date of the highest number.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In C39 this will return the time of the highest number.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then in B36 just
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Format all those accordingly.

    Since you have Office 365 MAXIFS should work in C36:AX36
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Identifying a row name from after finding the row with the highest value

    @fluff

    Nope, I do not have the dynamic array functions. Still living the good old ways..

  10. #10
    Registered User
    Join Date
    12-24-2019
    Location
    UK
    MS-Off Ver
    Microsoft 365 business
    Posts
    13

    Re: Identifying a row name from after finding the row with the highest value

    Hi all,

    Thanks very much for all your help. It is great. I have been using your formulas. From the data I create graphs and there are many tabs of the data so it does take a long time!

    An issue I have come across is when the data (highlighted in yellow) has two or more occurrences of the same value. If this was to take place, ideally the date and time it occurs (over and above the first occurrence of the highest number) would be presented below e.g. in cells C41 and C42 etc.

    Also, if the data has two or more entries that are the same, it does not matter which full day's data (that has the same highest number) is presented in line 36 and multiplied by 2 - at the moment it is zeroing the data in line 36 if two or more data entries have the same value.

    Many thanks,

    James

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Identifying a row name from after finding the row with the highest value



    Please upload another workbook that reflects all of that.

  12. #12
    Registered User
    Join Date
    12-27-2019
    Location
    india
    MS-Off Ver
    2016
    Posts
    2

    Re: Identifying a row name from after finding the row with the highest value

    Hi, Please upload the final file

  13. #13
    Registered User
    Join Date
    12-24-2019
    Location
    UK
    MS-Off Ver
    Microsoft 365 business
    Posts
    13

    Re: Identifying a row name from after finding the row with the highest value

    Hi all, please find attached a modify file to help demonstrate the issue I was having if more than 1 cell of data has the same value.

    I have entered 3 cells of data with the value of 1000.

    As you will see, this is leading to #REF! errors.

    As there are 3 cells with the same value in this example, it would be the best if each of these values were listed below the initial high value e.g. in cells C41 and C42, and also C44 and C45. And this would increase to 4 entries if there were 4 high values the same, and so on.

    The values in Row 36 just need to be from one of the days where the highest value has been seen - it doesn't matter which day if there is more than one day with the same high value.

    I hope I've been able to explain that ok!

    Thanks,

    James

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Identifying a row name from after finding the row with the highest value

    Please find in the attached these formulas.

    In C38 this returns the latest of the dates.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In C39
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In B36
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In C36:AX36
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    12-24-2019
    Location
    UK
    MS-Off Ver
    Microsoft 365 business
    Posts
    13

    Re: Identifying a row name from after finding the row with the highest value

    I would just like to say a very big thank you to everyone that has helped me out. This is a great resource.

    Thanks again.

    James

  16. #16
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Identifying a row name from after finding the row with the highest value

    You are welcome. Glad to help.

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

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Replies: 1
    Last Post: 01-15-2016, 05:18 PM
  2. Replies: 3
    Last Post: 08-04-2014, 01:20 PM
  3. [SOLVED] Identifying the highest
    By tay101 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-22-2013, 08:14 PM
  4. Finding Highest Value
    By Chris Gwynne in forum Excel General
    Replies: 4
    Last Post: 08-08-2011, 11:01 AM
  5. Replies: 4
    Last Post: 10-08-2010, 04:18 AM
  6. Identifying the highest value displayed from a cell
    By pkaspa in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-16-2008, 10:44 AM
  7. Help with Finding Highest value
    By spgprivate in forum Excel General
    Replies: 3
    Last Post: 06-28-2006, 01:33 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