+ Reply to Thread
Results 1 to 7 of 7

Excel formula to change another cell

  1. #1
    Registered User
    Join Date
    05-06-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Excel formula to change another cell

    Good morning all,

    I will try and explain exactly what I want and hopefully (!!) it will make sense. If you think you could help me; please reply

    The situation is that I currently have around 20 columns of raw data, what I have to do on a daily basis is change columns A,B,C and D into a certain colour depending on the value of column U.

    At the moment what I do is hide the columns in-between these 5 columns for easy reading, however would like a formula that I can put in conditional formatting (Perhaps an 'IF' or a 'VLOOKUP') to automatically change the different columns to the correct fill without all the manual work.

    Any help would be appreciated, please let me know if any further explanation is needed.

    Dr4ke

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Excel formula to change another cell

    Hi,

    First impression is this should be possible.

    Could you upload a sample workbook showing the layout and the desired result and explain the conditions for each colour being applied?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    05-06-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Excel formula to change another cell

    Quote Originally Posted by Domski View Post
    Hi,

    First impression is this should be possible.

    Could you upload a sample workbook showing the layout and the desired result and explain the conditions for each colour being applied?

    Dom
    Hi Dom,

    Firstly thank you for replying!

    I have created a new example spreadsheet which should make things much easier to understand. In it I have included the following.

    Data1, Data2, Data 3, Data 4 - These fields are the ones I will apply conditional formatting to.

    N/A - These fields are irrelevant and can be ignored (they have only been added to show the full picture of the spreadsheet I am working on)

    Result 1 - This field will determine the colour of the 'Data1', 'Data2', 'Data3', and 'Data4' columns. In this spreadsheet, what I would want is if the data in the 'Result 1' column is 'One' then I want the fill in 'Data1', 'Data2', 'Data3', and 'Data4' to change purple.

    Hope this makes things clearer?

    Dr4ke
    Attached Files Attached Files

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Excel formula to change another cell

    To do that...

    - Select A2:D25
    - Go into conditional formatting
    - Select Formula Is
    - Enter formula: =$L2="One"
    - Set your format

    Example attached.

    Dom
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-06-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Excel formula to change another cell

    Quote Originally Posted by Domski View Post
    To do that...

    - Select A2:D25
    - Go into conditional formatting
    - Select Formula Is
    - Enter formula: =$L2="One"
    - Set your format

    Example attached.

    Dom
    Absolutely perfect!!!

    I cannot thank you enough!

    This is my first post on this site, so here comes to stupid question, can I rate you on your answer or anything like that?

    Dr4ke

  6. #6
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Excel formula to change another cell

    No problem, glad it helped.

    There's a symbol that looks (a little) like a set of old style weighing scales in the heading of each reply. You can click on those to give 'rep' for a post if you choose to.

    Take care,

    Dom

  7. #7
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Excel formula to change another cell

    You can also mark the thread Solved. Check out the forum rules for details how.

    Dom

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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