+ Reply to Thread
Results 1 to 4 of 4

Conditional addition of cells

  1. #1
    Registered User
    Join Date
    04-23-2018
    Location
    Brazil
    MS-Off Ver
    2010
    Posts
    3

    Conditional addition of cells

    Hello guys,

    I'm an Excel newbie, and I have no idea how to resolve a problem. I need to add cells in a row whenever a condition (cell content) in the row is met, such as the following:

    Whenever a color is "Blue", I want the "Blue and Yellow" color to be added.

    Please Login or Register  to view this content.
    Should become:

    Please Login or Register  to view this content.
    This is to be applied on a pretty large sheet (several hundred of rows).

    Thanks! ;-)
    Last edited by Merz; 04-24-2018 at 01:29 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,348

    Re: Conditional addition of cells

    Please provide a more realistic sample of data.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-23-2018
    Location
    Brazil
    MS-Off Ver
    2010
    Posts
    3

    Re: Conditional addition of cells

    Sorry, I figured it would be enough. But you were entirely right, since using real data helped me to figure something else out.

    I actually need that all cells that do not fill a certain condition to be duplicated, with an "mz01" suffix added, in this example. In this case, it should not have the string "Large" in the cell, and it should not pertain to the record row.

    Thank you and again my apologies for the mistake.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-23-2018
    Location
    Brazil
    MS-Off Ver
    2010
    Posts
    3

    Re: Conditional addition of cells

    I'm such a fool. I entirely forgot that csv files are nothing but text files with very simple formatting. I managed to fix it myself, using the little Python I know. If you're interested, the Youtube video I used to help me was "Python Tutorial: CSV Module - How to Read, Parse, and Write CSV Files"

    Sorry for the trouble. Perhaps this will help someone though ;-)

+ 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] Conditional Addition
    By Mark59 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-09-2017, 01:33 PM
  2. Conditional row addition
    By tikrit in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-02-2012, 08:33 AM
  3. Conditional Addition
    By cellfservices in forum Excel General
    Replies: 3
    Last Post: 01-16-2010, 01:17 AM
  4. Conditional addition
    By matralab in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-06-2009, 09:47 AM
  5. Excel 2007 : Conditional Addition
    By hayhursm in forum Excel General
    Replies: 5
    Last Post: 10-15-2008, 09:40 AM
  6. conditional addition
    By DKY in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2005, 10:50 AM
  7. Conditional Addition
    By Andy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2005, 03:45 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