+ Reply to Thread
Results 1 to 6 of 6

IF Value in A = "OB" then swap contents of column C + E

  1. #1
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    IF Value in A = "OB" then swap contents of column C + E

    Morning,

    I have a tool which provides detail on exchanged items, however the data dump I receive has both inbound and outbound listed.

    I need to put all the inbound items into column E and outbound into column C but I have to use a vlookup to find the items they are exchanged with.

    I'm fine with getting the two lists of items, however I need any row where OB is in column A to have the contents of E and C swapped.

    I want to have this a specific code which I will add to the end of my macro for ease of maintainance.

    Thanks

    Dave

    Example Exchange.xlsx

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: IF Value in A = "OB" then swap contents of column C + E

    Shall be reasonably qiuck:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: IF Value in A = "OB" then swap contents of column C + E

    FWIW:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: IF Value in A = "OB" then swap contents of column C + E

    Same solution but a bit different.

    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: IF Value in A = "OB" then swap contents of column C + E

    Different.
    Please Login or Register  to view this content.

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: IF Value in A = "OB" then swap contents of column C + E

    Ok, last attempt to be different no more ideas.

    Please Login or Register  to view this content.
    Alf

+ 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] Copy contents from "Child" file to a "Master"
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 02-13-2014, 09:44 AM
  2. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  3. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  4. "Form and macro" to delete "Active" cell contents.
    By wanty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2013, 11:33 PM
  5. Replies: 8
    Last Post: 10-17-2012, 02:39 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