+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : IF Formula / Macro to switch order of cells

  1. #1
    Registered User
    Join Date
    MS-Off Ver
    Excel 2007

    IF Formula / Macro to switch order of cells


    sorry if this question has already been addressed.

    I would greatly appreciate if someone could help me set up a formula to rearrange the order of cells if the value in one cell is greater than in another.


    A1 = "Team 1"; B1 = "25"; C1 = "Team 2"; D1 = "30"

    how would you write a formula or macro that would swap A1 with C1 and B1 with D1 if the value of D1 is greater than B1?

    I learn quick but am not an Excel pro.

    many thanks.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7

    Re: IF Formula / Macro to switch order of cells

    Have a look at this workbook,

    In the worksheet Module
    Please Login or Register  to view this content.

    Can you work with that?
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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


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