+ Reply to Thread
Results 1 to 30 of 30

Look up column and Extract and print maximum value and beside cell value

  1. #1
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Look up column and Extract and print maximum value and beside cell value

    Dear masters,

    i need one code for Lookup entire column, extract maximum value and beside cell value to another cells and need one output column(U).i have one good code. please modify for this correction.
    i have tried but not successful. so kindly make a modification. my code is as below:

    Please Login or Register  to view this content.
    please find sample output file of Excel file.

    thanking you,
    Best regards.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Look up column and Extract and print maximum value and beside cell value

    u4 =MAX(ABS(P4),ABS(Q4)) and drag down.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by oeldere View Post
    u4 =MAX(ABS(P4),ABS(Q4)) and drag down.
    Dear sir,
    thank you for reply. i need by macro version and i want same value like a -14.59, -32.55 etc.. kindly modify my old code.

    Thanking you,
    best regards.
    Last edited by pvsvprasad; 08-23-2016 at 09:08 AM.

  4. #4
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Dear experts kindly solve.

    thanking you all,

    Best regards.

  5. #5
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Look up column and Extract and print maximum value and beside cell value

    Try this, I have updated your code. Please check.
    Please Login or Register  to view this content.
    Last edited by abduljaleel.mca; 08-23-2016 at 11:08 AM.

  6. #6
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Re: Look up column and Extract and print maximum value and beside cell value

    Dear sir, thank you for modification.

    your code is producing values as "0.00", correct values as -14.59, -32.55 etc, and No values are produced at X4, Y4, Z4 ,AA4, AA5. Please find screen shot.kindly modify the code to produce required result.

    please find sample out put format of excel file.

    thanking you,
    Best regards.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-23-2016 at 12:45 PM.

  7. #7
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Please modify the code.

    Thanking you,
    Best regards.

  8. #8
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Look up column and Extract and print maximum value and beside cell value

    Hi,
    Code is working fine for me here, please see below.
    Attached macro file as well.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by abduljaleel.mca; 08-23-2016 at 02:52 PM. Reason: Attached Macro excel file as well

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,650

    Re: Look up column and Extract and print maximum value and beside cell value

    Hello, try below code:

    Please Login or Register  to view this content.
    Quang PT

  10. #10
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by abduljaleel.mca View Post
    Hi,
    Code is working fine for me here, please see below.
    Attached macro file as well.
    Dear sir,
    thank you for providing.with help of your code, at "U" column there is values like 14.59,32.55 etc instead of -14.49, -32.55 etc. these should be with negative values. kindly make small correction in your code.

    thanking you,
    best regards.

  11. #11
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by bebo021999 View Post
    Hello, try below code:
    Dear sir,

    i just saw your code. and very nice. thank you for providing.

    i am adding 3 columns with inserted simple manual formulas, please insert those formulas to your code.please find the attachment.

    AC , AD, AE values should be produced up to where up to AB columns values are available.(AB Column is Manual input only, no need code at AB Column))

    and some minutes hanging while using with more data rows.please tweak the code.

    Thanking you,
    Best regards.
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-25-2016 at 05:13 AM.

  12. #12
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by pvsvprasad View Post
    Dear sir,
    thank you for providing.with help of your code, at "U" column there is values like 14.59,32.55 etc instead of -14.49, -32.55 etc. these should be with negative values. kindly make small correction in your code.

    thanking you,
    best regards.
    Change this line

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by abduljaleel.mca View Post
    Change this line

    Please Login or Register  to view this content.
    Dear sir,
    thank you for modification.
    automatically changed Formula range at "U" column. kindly fix this error.
    Attached Files Attached Files

  14. #14
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Look up column and Extract and print maximum value and beside cell value

    Updated. Please check.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by abduljaleel.mca View Post
    Updated. Please check.
    Dear sir,

    thank you for updating.i am tested with more data, now showing wrong text at "AA4". please find the attachment and update.

    thanking you,
    Best regards.
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-24-2016 at 08:31 AM.

  16. #16
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Look up column and Extract and print maximum value and beside cell value

    It is showing 'N/A' since the number '-47.157' is not in 'MY' column (columns G and H). The data for AA5 should be fetched from columns G and H right? Then why do have the number '-47.157' is in 'MZ' column (columns E and F) instead of 'MY?.

  17. #17
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Oh..sorry i will check once. wait

  18. #18
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by abduljaleel.mca View Post
    It is showing 'N/A' since the number '-47.157' is not in 'MY' column (columns G and H). The data for AA5 should be fetched from columns G and H right? Then why do have the number '-47.157' is in 'MZ' column (columns E and F) instead of 'MY?.
    Yes sir, Look up entire G column and find maximum value and paste to Z4 column either positive or negative and another value to AA4 column. data is fetched from G and H columns .(-47.157 is wrong result)

    same as for E F columns and fetched from G and H columns.fetched from E and F columns.


    maximum value example : if column E or G containing 32 and -62 then paste as a -62.

    for rules please See at X2 and Z2 Text.

    kindly modify the code.

    thanking you,
    Best regards.
    Last edited by pvsvprasad; 08-24-2016 at 11:03 AM.

  19. #19
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Look up column and Extract and print maximum value and beside cell value

    Please check.
    Attached Files Attached Files

  20. #20
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by abduljaleel.mca View Post
    Please check.
    Dear sir,
    thank you for modification and updating.

    in your code mentioned formula for AC4 is "=SUM(AB5:AB5) + 5", but i need formula as a" =IF($AB4=15,"20",IF($AB4=20,"25",IF($AB4=25,"35",IF($AB4=30,"40"))))" in your code.

    W4 value is larger than AC4 so print as "FAIL" at AD4 (sorry, i am unfortunately moved rows AC to AE downwards, now sent Correct position)

    AC , AD, AE values should be produced up to where up to AB columns values available.please find the attachment for cell moving correction.(AB Column is Manual input only, no need code at AB Column)

    kindly make these modifications.


    thanking you sir,
    With best regards.
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-24-2016 at 12:41 PM.

  21. #21
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Look up column and Extract and print maximum value and beside cell value

    Attached updated file.
    Attached Files Attached Files

  22. #22
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by abduljaleel.mca View Post
    Attached updated file.
    Dear sir,
    now your code is well. you forgot one column i.e "AE".
    AE column cell values should be produce where up to AB columns values range available.

    kindly add the missing column code line.

    thank you for modification.

    Best regards.

  23. #23
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Re: Look up column and Extract and print maximum value and beside cell value

    Dear sir,
    please add Missing AE column to your code. please find the attachment for sample output in AE column.

    Thanking you,
    Best regards
    Attached Files Attached Files

  24. #24
    Valued Forum Contributor abduljaleel.mca's Avatar
    Join Date
    02-13-2013
    Location
    Chennai, India
    MS-Off Ver
    MS 365 Business
    Posts
    326

    Re: Look up column and Extract and print maximum value and beside cell value

    Attached updated file.
    Attached Files Attached Files

  25. #25
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Dear Masters,
    This is another variant from present code. kindly make a suitable modifications for this sample Output excel file.

    thanking you all,
    Best regards.
    Last edited by pvsvprasad; 08-26-2016 at 02:05 PM.

  26. #26
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Question Re: Look up column and Extract and print maximum value and beside cell value

    Plz find this attachment for modification.
    Attached Files Attached Files
    Last edited by pvsvprasad; 08-27-2016 at 12:34 AM.

  27. #27
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Look up column and Extract and print maximum value and beside cell value

    Keeps the questions open I asked you in the beneath link.

    http://www.excelforum.com/excel-prog...d-analyze.html

  28. #28
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by oeldere View Post
    Keeps the questions open I asked you in the beneath link.

    http://www.excelforum.com/excel-prog...d-analyze.html
    yes sir, i did. please have a look at thread and solve.

    thanking you,
    best regards.

  29. #29
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Look up column and Extract and print maximum value and beside cell value

    post in wrong threat

  30. #30
    Forum Contributor
    Join Date
    12-16-2013
    Location
    World
    MS-Off Ver
    Excel 2007
    Posts
    215

    Re: Look up column and Extract and print maximum value and beside cell value

    Quote Originally Posted by abduljaleel.mca View Post
    Please check.
    Dear sir,
    Kindly have a look at this thread and solve.

    http://www.excelforum.com/excel-prog...d-analyze.html

    Thanking you sir,
    Best regards.

+ 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] Filter to extract the maximum value for each ID
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-19-2016, 03:29 AM
  2. [SOLVED] Extract Minimum and maximum dates against values in adjucent column
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2015, 01:35 AM
  3. Replies: 7
    Last Post: 10-07-2015, 03:01 PM
  4. Replies: 4
    Last Post: 07-08-2015, 06:31 AM
  5. Print hundreds of 6 column charts using maximum page for printing
    By simgs in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 04-28-2013, 02:51 AM
  6. Extract the maximum value and copy the entire row.
    By Faye in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-18-2005, 08:05 PM
  7. Replies: 1
    Last Post: 01-16-2005, 09:30 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