+ Reply to Thread
Results 1 to 6 of 6

How to make this work? IF, AND function, conditional formatting? 3 quesitons.

  1. #1
    Registered User
    Join Date
    03-29-2012
    Location
    Poland
    MS-Off Ver
    Excel 2003
    Posts
    2

    Lightbulb How to make this work? IF, AND function, conditional formatting? 3 quesitons.

    Hello!
    I started to "play" with excel so it will make my work (and hopefully others) easier. Got the idea, but lack of knowledge.
    So I would like to accomplish this:
    1. IF B=XXX and C=YYY color background
    I have come up with somehting like this: IF(($B=XXX)AND($C=YYY))
    Obviously wrong, I wanted to put this to Conditional formatting and set the color there.
    2. I got a column with dates in format yyyy-mm-dd hh-mm I would like the dates that are less than one day to NOW mark red. I'm pasting the dates manually.
    3. IF B=ABC > F=AAA
    IF B=BCD > F=BBB
    There are about 20 diffrent codes in B column and about 15 in F column, as some of B codes have the same value in F

    Hope this is understendable :D THank you very much in advance!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to make this work? IF, AND function, conditional formatting? 3 quesitons.

    1. =AND($B1="XXX",$C1="YYY") where B1 and C1 are in top most row you selected... adjust as necessary.

    2. =AND($D1<>"",$D1<=NOW(),$D1>=NOW()-1)

    3. Not sure I understand.... please elaborate....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: How to make this work? IF, AND function, conditional formatting? 3 quesitons.

    1) AND(($B=XXX),($C=YYY))
    2) =(A1-Now())>1
    3) What do you mean by ABC or AAA? Greater than has to relate to numbers.

  4. #4
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: How to make this work? IF, AND function, conditional formatting? 3 quesitons.

    Always beat me to it NBVC

  5. #5
    Registered User
    Join Date
    03-29-2012
    Location
    Poland
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to make this work? IF, AND function, conditional formatting? 3 quesitons.

    Thank you guys! As I'm currently on holiday, I'll get back to it when I'll be at work :P About the 3rd point here is an example (column A with no, column B with letters):
    1 A
    2 B
    3 C
    4 D
    5 A
    6 B
    7 B

    The thing is that when I put a value manually in column A I would like to get a value in column B according to a predefined list with values for "numbers(as numbers there will be a list of customers)" and "letters(as letters there will be a list of managers which work for a specific customers, some customers have the same manager)".

    Cheers!

  6. #6
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: How to make this work? IF, AND function, conditional formatting? 3 quesitons.

    So you know how to name a range yes? Just do that and then get vlookup to reference column A and return the corresponding letter from the named range in column B.
    If someone helped give them rep using the star button.

    If you have received a satisfactory solution please mark the thread solved. If not Fotis will come for you at night :P

+ 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