+ Reply to Thread
Results 1 to 10 of 10

Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill red

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Irvine, CA
    MS-Off Ver
    Professional Plus 2010
    Posts
    13

    Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill red

    need help excel.PNG

    I need some magic scientist excel help with this one. I *think* than logic (if then) would work with this, but I am not smart enough to figure it out.

    I am also working with 180K rows of data. (By the way, if I am working with this large of a file, should I back it up with SQL?)

    The riddle is: If cells from B2 to P2 (and all the 180K rows beneath those) are empty, but cell Q2 is not....then...(I would like a quick way to identify this. For me, the best way is to fill the cell in A with red & make the font white.

    I've attached a screenshot for clarity.

    THANK YOU excel family!!!

  2. #2
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill

    Try select data range in column A2:A180000(last row of your data), and create new conditional formatting as follow and set the color/font accordingly:
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  3. #3
    Registered User
    Join Date
    03-28-2013
    Location
    Irvine, CA
    MS-Off Ver
    Professional Plus 2010
    Posts
    13

    Re: Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill

    Should I enter a value in this part? "",Q2<>"")

  4. #4
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill

    Not necessary, it's written in a way that matched your criteria
    Does it works?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  5. #5
    Registered User
    Join Date
    03-28-2013
    Location
    Irvine, CA
    MS-Off Ver
    Professional Plus 2010
    Posts
    13

    Re: Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill

    Ah ok. No, it didn't.

    since you pointed out that conditional formatting may work, I will read up on it. I would like to set up other rules too, like: if column f, g, and h all have a value then (somehow point that out).

    I'm dealing with so much data....I am trying to find patterns. I need to see which columns have the most data across a row...

    It would be even better if I could cross check that against column q.

    For example, if several columns have data in one row, but q is empty, I want to know this first and foremost.

    Not sure if my description makes any sense. I guess, can I ask, do you recommend I learn more about conditional formatting? Oh, and would you recommend me using something else? (sql). ... I am driving in the dark here.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill

    A word of warning...using Conditional Formatting on a file with that much data could cause your file to slow down.

    =AND(B2:P2="",Q2<>"")
    that wont work, try this instead...
    =AND(counta(B2:P2)=0,Q2<>"")

    Another option might be to use that formula (modified) in a helper column...
    =if(AND(counta(B2:P2)=0,Q2<>""),1,0)
    You could then filter on the helper, using whichever you want to see
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill

    Quote Originally Posted by FDibbins View Post
    that wont work, try this instead...
    =AND(counta(B2:P2)=0,Q2<>"")
    Hi Ford, tested formula in post#2 with yours and both yielding same result.
    Did I miss out something



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  8. #8
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill

    Hi colleendeborah, I would definitely recommend you to read up more about CF as it's very useful (even though you might not be using for this problem).

    As Ford suggested, creating helper column(s) would be a good alternative and all depends on how huge is your data, and how complicated for the criteria that you need to accomplish your goal



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill

    Thanks for the update alvin My reason for posting that comment was as below...

    Interesting...
    =A1:D1="" gives #VALUE
    =B2:P2="" gives TRUE

    I dont see what the difference it????

  10. #10
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Magic Scientist Excel Brain Help? If B2-P2 are blank (and) Q2 isn't then make A1 fill

    Hi Ford,

    Ah I see, yea using merely range without function seems like returning unforeseen result

    Following probably yield consistent/expected outcome
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ 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. Hi, I am a biomedical scientist and use Excel a lot.
    By sam280208 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-28-2012, 07:41 PM
  2. [SOLVED] Excel Magic Trick 369 with blank cells
    By hejsanb in forum Excel General
    Replies: 14
    Last Post: 07-01-2012, 07:23 AM
  3. how to make a magic square in excel?
    By Razvan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2010, 10:22 AM
  4. A good car for a rocket scientist
    By tony h in forum The Water Cooler
    Replies: 5
    Last Post: 04-05-2010, 03:25 AM
  5. How do I make fill-in-the-blank forms, with Excel?
    By Raymond Mayo RJM ENT. in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-15-2006, 02:20 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