+ Reply to Thread
Results 1 to 19 of 19

How to make a cell go red depending on another cells value?!

  1. #1
    Registered User
    Join Date
    04-16-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    19

    How to make a cell go red depending on another cells value?!

    Hi Guys

    My first post.

    I have a spreadsheet, which I use as a track for work.

    When I type "SPQ" into a cell, I want the 4th cell on the right to turn red? How can I do this?!

    I would like this for every single cell, so any cell I type "SPQ" into, the 4th cell on the right goes red no matter where it is within the spreadsheet?!

    Thanks in advance

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,317

    Re: How to make a cell go red depending on another cells value?!

    Hello Sam & Welcome to the Forum,

    I can't think of a way to have conditional formatting do this, so you might be VBA.

    Do you want to go with VBA?
    HTH
    Regards, Jeff

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to make a cell go red depending on another cells value?!

    Quote Originally Posted by SamTB View Post
    I would like this for every single cell
    Are you sure about that?

    There are 1,048,576 cells per column * 16,384 columns = 17,179,869,184 cells per worksheet.

    How about narrowing it down to a reasonable range of cells!
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,317

    Re: How to make a cell go red depending on another cells value?!

    Quote Originally Posted by Tony Valko View Post
    How about narrowing it down to a reasonable range of cells!
    Hi Tony,

    Even with a narrowed range, can this be done via CF?

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to make a cell go red depending on another cells value?!

    I'm thinking that once we find out what the OP really wants (and where it should happen) it should be doable.

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,313

    Re: How to make a cell go red depending on another cells value?!

    narrowing it down to a reasonable range of cells
    Try this CF formula
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to make a cell go red depending on another cells value?!

    Could be done with something like this:

    =OFFSET(Cell_Ref,,-4)="SPQ"

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to make a cell go red depending on another cells value?!

    @ Willem...

    I didn't download your file.

    Why is your file a macro enabled file?

    Did you use VBA to do this?

  9. #9
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,313

    Re: How to make a cell go red depending on another cells value?!

    No I always use XLSM files

  10. #10
    Registered User
    Join Date
    04-16-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    19

    Re: How to make a cell go red depending on another cells value?!

    Thanks! However the cell to the right on the row below where I put SPQ goes red? How can i get it on the same row?

  11. #11
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,313

    Re: How to make a cell go red depending on another cells value?!

    Not in my file
    Show us your file where it is going wrong.

  12. #12
    Registered User
    Join Date
    04-16-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    19

    Re: How to make a cell go red depending on another cells value?!

    Silly question, how do I upload my file?! Which I click on the attatchments icon nothing happens?

  13. #13
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,317

    Re: How to make a cell go red depending on another cells value?!

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).

  14. #14
    Registered User
    Join Date
    04-16-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    19

    Re: How to make a cell go red depending on another cells value?!

    Hopefully that's worked?
    Attached Files Attached Files

  15. #15
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,313

    Re: How to make a cell go red depending on another cells value?!

    Change:
    Please Login or Register  to view this content.
    in
    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    04-16-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    19

    Re: How to make a cell go red depending on another cells value?!

    Thank you so much! What would I have to change If i wanted the cells to go further apart? for example the 5th/6th/7th cell to go red?

    Once again, thank you!!!!

  17. #17
    Registered User
    Join Date
    04-16-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    19

    Re: How to make a cell go red depending on another cells value?!

    thanks so much, but for example what would I do if I wanted the 6th cell to go red? what would i have to change? thanks so much again

  18. #18
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,313

    Re: How to make a cell go red depending on another cells value?!

    Formula: =A3="SPQ"
    Range : =$D$3:$OE$31

    A is column 1
    D is column 4 (1+3)
    ? is column ? (1+6)

    Let your brains work

  19. #19
    Registered User
    Join Date
    04-16-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    19

    Re: How to make a cell go red depending on another cells value?!

    hahaha, thank you for all your help! -

+ 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. How to make a picture appear depending on what a cell says
    By Ayoub99k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2016, 09:03 AM
  2. Unable to make a cell change colour depending on another cells date.
    By rjhardman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-09-2015, 12:13 PM
  3. Replies: 1
    Last Post: 11-11-2014, 06:10 PM
  4. Can i make a cell open different files depending on its fill colour
    By Muzza86 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2014, 10:41 AM
  5. [SOLVED] How to Make a Cell Read only depending upon Value of another cell
    By nav_nav2000 in forum Excel General
    Replies: 2
    Last Post: 11-19-2013, 02:41 AM
  6. How to make cell values equal certain text depending on other cells' text
    By Wes Borland in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2013, 02:08 PM
  7. Replies: 16
    Last Post: 03-09-2011, 12:27 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