+ Reply to Thread
Results 1 to 3 of 3

If column A =" X " then print Column B = " Y"

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    england
    MS-Off Ver
    1.0
    Posts
    3

    If column A =" X " then print Column B = " Y"

    Hello,

    I would like to know macro for this

    If column A = "Hello" then print Column B = number 0
    If column A = "Hi" then print Column B = Number 7
    If column A = "Good" then print Column B = "Morning"


    I have 1000+ rows, so i would like to have macro instead of formula for these three cases in one macro.
    And i have 10+ worksheet and i need this on "Worksheet 5" only.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: If column A =" X " then print Column B = " Y"

    Perhaps
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    england
    MS-Off Ver
    1.0
    Posts
    3

    Re: If column A =" X " then print Column B = " Y"

    sorry, it doesn't work..

+ 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] 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
  2. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  3. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  4. Replies: 1
    Last Post: 07-16-2010, 02:44 AM
  5. Replies: 0
    Last Post: 07-09-2009, 04:07 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