+ Reply to Thread
Results 1 to 10 of 10

Conditional formatting of cell based on text in another cell - help the newb please...

  1. #1
    Registered User
    Join Date
    07-26-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel for Mac (365 subscription) Version 16.51
    Posts
    24

    Question Conditional formatting of cell based on text in another cell - help the newb please...

    Hi guys,

    I tried searching around but couldn't find an answer for this problem.

    First time here. I suck at excel but I need to get better because I'm using it more and more.
    I'm making a template sheet for purchase orders. The orders come from many countries so the currencies vary.
    I want to be able to select a currency from a drop down list, and this will automatically format a bunch of other cells.
    Example: I select USD and the other cells are formatted thusly - "$0.00".

    I tried to write a formula for a conditional formatting "rule" - but it ain't working.
    This is the first time I've tried using an "IF" statement, so I probably buggered it up.

    I have attached a sample of the worksheet, and a screen shot of my "rule" with the formula.
    I have only tried to format for Japanese ¥ so far. If I can get that to work I'll add rules for the other currencies.

    Any help much appreciated.

    Dan



    (I'm on an old 2012 Macbook pro, running Mojave, with a subscription to Office 365. Excel version 16.51 apparently)
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Conditional formatting of cell based on text in another cell - help the newb please...

    Hi
    the IF function is implicit in Conditional Formatting and thus redundant
    If you don't have too many currencies enter =$C$4="JPY" and format as required (Number - Currency - and select the Currency.
    Then add as many new conditions as necessary always based on the same type of rule. (e.g. =$C$4="USD")

  3. #3
    Registered User
    Join Date
    07-26-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel for Mac (365 subscription) Version 16.51
    Posts
    24

    Re: Conditional formatting of cell based on text in another cell - help the newb please...

    Hey Pepe,
    Thanks for your help buddy, problem solved!

    I have a couple of conditions which result in the same format.
    Is it possible to combine into 1 x rule? Is there some kind of "OR" function in excel?
    I tried =$C$4="NTD" OR =$C$4="HKD" but the rule manager won't except it as a formula.
    I'm assuming the less rules the better....

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Conditional formatting of cell based on text in another cell - help the newb please...

    The syntax for OR looks like this:

    =OR($C$4="NTD",$C$4="HKD" )
    Rory

  5. #5
    Registered User
    Join Date
    07-26-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel for Mac (365 subscription) Version 16.51
    Posts
    24

    Re: Conditional formatting of cell based on text in another cell - help the newb please...

    Kick-***!
    Thanks Rorya.
    Gotta say - I'm loving this forum already.

  6. #6
    Registered User
    Join Date
    07-26-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel for Mac (365 subscription) Version 16.51
    Posts
    24

    Re: Conditional formatting of cell based on text in another cell - help the newb please...

    Ok - so my template is looking good and working well.
    I can't seem to find a way to create new sheets from a template.
    If I right click on the sheet tabs there is no option, nor on the "+" tab. Am I missing something?
    I can make new workbooks from a template, but that's not that useful. I want 1 x workbook with all my purchase order sheets in it.
    If I make a new workbook from the template, and then move the sheet to the correct workbook, my data validation references all stop working.
    Perhaps I just keep a template sheet in the workbook and make copies from it....

  7. #7
    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
    80,410

    Re: Conditional formatting of cell based on text in another cell - help the newb please...

    This is a completely different question. Please mark this thread as solved and start a new thread with an appropriate title. Thanks.
    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.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Conditional formatting of cell based on text in another cell - help the newb please...

    BTW you do not need to use formula with the OR function, you have to create separate rules for each currency which will then format accordingly
    Using the OR function will only allow 1 formatting

  9. #9
    Registered User
    Join Date
    07-26-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel for Mac (365 subscription) Version 16.51
    Posts
    24

    Re: Conditional formatting of cell based on text in another cell - help the newb please...

    Quote Originally Posted by AliGW View Post
    This is a completely different question. Please mark this thread as solved and start a new thread with an appropriate title. Thanks.
    Ah- no problem. New here, not aware of the protocols.
    I'll mark this one as solved. Cheers.

  10. #10
    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
    80,410

    Re: Conditional formatting of cell based on text in another cell - help the newb please...

    Thank you.

+ 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 Formatting based on text in another cell
    By WaveWalker116 in forum Excel General
    Replies: 3
    Last Post: 11-25-2020, 11:05 AM
  2. [SOLVED] Conditional formatting a cell based on the text of another cell
    By TSACov in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-20-2020, 11:45 PM
  3. [SOLVED] Conditional Formatting Based on Text in Another Cell
    By femola in forum Excel General
    Replies: 3
    Last Post: 01-21-2016, 06:16 AM
  4. [SOLVED] EXCEL NEWB.....Change cell color based on text in a cell on another sheet
    By anon1988 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2014, 12:16 AM
  5. [SOLVED] Conditional Formatting based on a Date Cell and a text Cell.
    By Clark85 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-09-2013, 07:53 AM
  6. [SOLVED] Conditional Formatting Based on Another Cell's Text
    By computergeek in forum Excel General
    Replies: 6
    Last Post: 06-26-2012, 11:14 AM
  7. Replies: 1
    Last Post: 03-21-2012, 03: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