+ Reply to Thread
Results 1 to 3 of 3

How to display the higher number out of two columns and add in a third column?

  1. #1
    Registered User
    Join Date
    01-25-2011
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    8

    How to display the higher number out of two columns and add in a third column?

    Hello everyone

    I am looking for a short Macro that will display the higher number out of two numbers in two columns.

    Example:

    A1: 1540
    B1: 1420
    => C1 shall display 1540, because 1540 > 1420

    A2: 890
    B2: 1400
    => C2 shall display 1400, etc.

    How can this be done?

    I am new to VBA, excuse me if this is already out there somewhere else.

    Kind regards,
    Test5000
    Last edited by Test5000; 12-16-2014 at 06:34 AM.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: How to display the higher number out of two columns and add in a third column?

    Try :-
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Registered User
    Join Date
    01-25-2011
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: How to display the higher number out of two columns and add in a third column?

    Hi Mick, thanks a lot!
    It almost worked perfect, it just displayed the result of the higher in two columns instead of one somehow, but it did what I was asking for.

    Thank you

    Thread can be closed
    Last edited by Test5000; 12-16-2014 at 06:39 AM.

+ 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] Comparing two columns and returning the number of cells in one column with higher values
    By heresteve2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2014, 01:06 PM
  2. [SOLVED] Count Duplicates in Column A once as long as there is a number higher than 0 in Column B
    By armbands1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2013, 01:46 AM
  3. Merge Columns- Keep higher Number if other column is duplcate
    By rocking11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2012, 11:50 AM
  4. Replies: 7
    Last Post: 03-22-2010, 05:22 PM
  5. Comparing 2 columns, highlighting the higher number
    By Hagi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2009, 01:17 PM

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