+ Reply to Thread
Results 1 to 4 of 4

How to combine if formulas with visual basics?

  1. #1
    Registered User
    Join Date
    08-12-2014
    Location
    sadasd
    MS-Off Ver
    2010
    Posts
    2

    Question How to combine if formulas with visual basics?

    Hi guys,

    I have an excel sheet that have a large set of datas. In these datas in one column most of the datas are indicated as green but some of them are red. I can pick the red ones by using filter option but I also wanted to show the red cell values in one cell. For example, Cell1;Cell2;Cell3 like this (the ; should be between them). I try to use macros but that is not the program that I have full knowledge about it. So i can not solve the issue.

    How can I solve this?

    Thanks

    ( Like this
    IF
    A(i)= red

    Then
    B(i)=A(i)
    end if
    )

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 2016 (Windows)
    Posts
    4,973

    Re: How to combine if formulas with visual basics?

    Lucky for you I do know VBA

    Try this macro - select the cell for the list when prompted and, since the code depends on the correct 'red', choose a cell with that red when prompted. And I wasn't sure if you wanted the values or the addresses: read the comments to decide. Note that the macro is looking in column A for the color of the cells...

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    08-12-2014
    Location
    sadasd
    MS-Off Ver
    2010
    Posts
    2

    Re: How to combine if formulas with visual basics?

    Quote Originally Posted by Bernie Deitrick View Post
    Lucky for you I do know VBA

    Try this macro - select the cell for the list when prompted and, since the code depends on the correct 'red', choose a cell with that red when prompted. And I wasn't sure if you wanted the values or the addresses: read the comments to decide. Note that the macro is looking in column A for the color of the cells...

    Please Login or Register  to view this content.

    Thank you for your answer firstly unfortunately I have no idea about the visual so i just try this code so i don't know how to modify it.

    I will choose one column these columns have datas in text. I want to the program choose red coloured text among the green ones and wright them in ONE cell. When I try this code it erases the data

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 2016 (Windows)
    Posts
    4,973

    Re: How to combine if formulas with visual basics?

    Then I'm not sure what you want. Post an example of a before and after range, either in a workbook or with screen captures.

+ 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] Visual basics from ground
    By i82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2013, 06:30 AM
  2. Hi! I am a new to visual basics and have really enjoyed the post.
    By trstnu in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-01-2012, 07:14 PM
  3. Disable Macros in Visual Basics
    By JVM383 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2011, 05:37 PM
  4. Visual Basics in Excel
    By onyx4813 in forum Excel General
    Replies: 3
    Last Post: 08-16-2005, 04:05 PM
  5. Combo box in Visual Basics
    By tamato43 in forum Excel General
    Replies: 1
    Last Post: 03-28-2005, 09:06 PM

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