+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting

  1. #1
    Registered User
    Join Date
    02-11-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Conditional Formatting

    I am trying to figure out how to add an if statement to conditional formatting... If the value in cell B5 = "V" or "Va", then color the cell red... I can get it to work if I choose ="V" or ="Va" But i cannot get it to work for both conditions... Any ideas?

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

    Re: Conditional Formatting

    Try...

    =OR(B5="V",B5="VA")
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    02-11-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Conditional Formatting

    Thank you... That worked... I have one more question.. If I need to start a new thread, I am appy to do that... Else, here goes...

    This is the Formula in Colum C, for all rows, 18 thru 382...

    =IF(B19="V",1,IF(B19="P",1,IF(B19="Va",0.5,IF(B19="S",1,IF(B19="Sa",0.5,IF(B19="H",1,0)))))

    I need a formula that will look at a range of cells in Column B (B18:B382), The add the numbers in Column C that Match to the Number of "V" or "VA" or "S" etc.. in Colum B.
    They were using CountIF, But I cannot seem to get that to work with two columns involved...

    Any ideas?

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

    Re: Conditional Formatting

    Try this....

    =SUM(IF(B18:B382={"V","P","Va","Sa","H"},C18:C382))

    This is a CSE formula and must be entered with Ctrl + Shift + Enter

    or non CSE

    =SUMPRODUCT(SUMIF(B18:B382,{"V","P","Va","Sa","H"},C18:C382))
    Last edited by jeffreybrown; 02-11-2012 at 02:17 PM.

  5. #5
    Registered User
    Join Date
    02-11-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Conditional Formatting

    That is amazing... Thank you...

+ 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