+ Reply to Thread
Results 1 to 4 of 4

"Highest" value from two columns on two sheets

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    Belgium
    MS-Off Ver
    Office 365
    Posts
    21

    "Highest" value from two columns on two sheets

    Dear all

    I would like to retrieve the highest value from two columns of prefixed numbers.

    Sheet1, column A:
    P100859
    P100123
    P100159
    P100258
    P100397
    P100157

    Sheet2, column A:
    P100752
    P100151
    P100966
    P100227
    P100342
    P100666

    I would love to have a macro that returns the highest value (P100966). The values are always prefixed with the same letter and always have the same length.

    Thanks for helping out!

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,122

    Re: "Highest" value from two columns on two sheets

    Edit...Added snippet regarding Sheet Found...

    Please Login or Register  to view this content.
    Last edited by sintek; 11-10-2022 at 03:08 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    01-21-2014
    Location
    Belgium
    MS-Off Ver
    Office 365
    Posts
    21

    Re: "Highest" value from two columns on two sheets

    Thanks, that's awesome. I've edited this slightly to work with sheet index (so actually the first two sheets, regardless of their name), but I seem to have (ofc) broken the code:

    Please Login or Register  to view this content.
    What'd I do wrong?

    EDIT: No prob, it's working now!

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,122

    Re: "Highest" value from two columns on two sheets

    Glad to have helped...Tx for rep +

+ 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] Formula to count "low", "med", or "high" in 4 columns of data split by fiscal quarter
    By Kerry1980 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-11-2022, 06:58 AM
  2. Replies: 1
    Last Post: 03-09-2016, 12:17 PM
  3. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  4. [SOLVED] Need Macro to compile data from "Weekly" sheets and sum up into "Monthly" summary sheet
    By mo4391 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-21-2013, 07:25 PM
  5. Replies: 0
    Last Post: 01-09-2013, 06:52 PM
  6. [SOLVED] Sheets("Sheet2").Range("AA1") = "Note"
    By dcburkejr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-03-2012, 04:10 PM
  7. "The "sheets" method from the "_Global" object have failed."
    By mankit87 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2011, 08:53 AM

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