+ Reply to Thread
Results 1 to 3 of 3

How to get rid of black Cells using if statement?

  1. #1
    Registered User
    Join Date
    04-06-2018
    Location
    america
    MS-Off Ver
    2010
    Posts
    30

    How to get rid of black Cells using if statement?

    Hi guys,

    I'm trying to avoid using VBA and was hoping it be possible to just do it using IF THEN Statements

    Basically what I'm doing is trying to sort by age groups and age for a summer camp.
    I have a spreadsheet were I have names of all kids that got registered for the camp. In this spreadsheet I have 4 columns; Column1=First name, Column2=Last name, Column3=Age, Column4=Gender

    What I want to do is put names into a column if they fall under that age category.

    So lets say I have a sheet that has Column Ages 1-5 Boys and Column Ages 1-5 Girls. I want to be able to go through my data that has all the names and say if this is a boy and age is 1-5 then copy that name into column Ages 1-5 Boys. and same thing for Girls.

    What I have tried doing so far is using the IF statement which technically did what I want it to do but half way.

    =IF(AND(Sheet1!$C3>0,Sheet1!$C3<6),Sheet1!$A3&" "&Sheet1!$B3,"") in this formula I dont have an option for where it askes the question of gender.

    It if value was false it would return a blank Value but I dont want to have blank values. I want the names to be put one after another. If the statement is false I just want it to move on and copy next true value.

    Hope this makes sense. Please help. thank you

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: How to get rid of black Cells using if statement?

    Please see yellow banner at top of the page on how to attach a sample workbook.

  3. #3
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: How to get rid of black Cells using if statement?

    Try using IFS instead of IF allows for more conditions.
    If you find the suggestion or solution helpful, please consider adding reputation to the post.

+ 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. Click a shape to toggle black fill and change line color to black
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2020, 01:29 PM
  2. [SOLVED] Automatically put in 10 black cells
    By Patcheen in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-31-2016, 07:10 AM
  3. Replies: 0
    Last Post: 01-21-2015, 12:05 PM
  4. How to ignore black cells
    By ACrossley1 in forum Excel General
    Replies: 2
    Last Post: 10-29-2014, 05:49 AM
  5. Black out certain cells if the column contains X
    By ineedthisspread in forum Excel General
    Replies: 6
    Last Post: 12-21-2012, 05:47 AM
  6. [SOLVED] delete only black text from cells containing both blue & black text
    By london.cl.2012 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-21-2012, 10:15 PM
  7. Black cells, need refresh
    By elfalsote in forum Excel General
    Replies: 2
    Last Post: 09-27-2011, 01:16 AM

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