+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 : Conditional Formating - Automatically populate column value by grouping

  1. #1
    Registered User
    Join Date
    07-14-2004
    Posts
    11

    Conditional Formating - Automatically populate column value by grouping

    Say, I have these 4 columns in excel 2007.

    Batch No | Code | Count | Remark
    -----------------------------------
    1010 | ABC | 10 | P1
    1010 | ABC | 4 | P2
    1030 | CCC | 13 |
    1030 | CCC | 2 |
    1044 | XYZ | 4 |
    1044 | XYZ | 1 |

    Right now, I need to manually copy and paste value "P1" and "P2" to each group of same Batch No and Code. I have already sort out the data already. Thus, they are always in pair. Just ask, how can I create a formula using "Conditional Formating" to automatically populate the value of "P1" and "P2" and Remark column?

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional Formating - Automatically populate column value by grouping

    Try this in D2
    Please Login or Register  to view this content.
    or for 2007 and above
    Please Login or Register  to view this content.
    Drag/Fill Down.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    07-14-2004
    Posts
    11

    Re: Conditional Formating - Automatically populate column value by grouping

    Thanks. I will give it a try.

  4. #4
    Registered User
    Join Date
    07-14-2004
    Posts
    11

    Re: Conditional Formating - Automatically populate column value by grouping

    Hi, I tried already. It works but I changed it a bit. Thanks!

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional Formating - Automatically populate column value by grouping

    It works but I changed it a bit.
    What did you change?

    Best you post your solution so that we can all see, and understand, what you were trying to do.

  6. #6
    Registered User
    Join Date
    07-14-2004
    Posts
    11

    Re: Conditional Formating - Automatically populate column value by grouping

    Quote Originally Posted by Marcol View Post
    What did you change?

    Best you post your solution so that we can all see, and understand, what you were trying to do.
    The formula I have now is

    For the first row - =IF(AND((A50446&D50447=A50446&D50447),(E50446<E50447)),"P1","Invalid")
    For the second row - =IF(AND(NOT(A50447&D50447=A50448&D50448),(G50446="P1")),"P2","Invalid")

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional Formating - Automatically populate column value by grouping

    For the first row - =IF(AND((A50446&D50447=A50446&D50447),(E50446<E50447)),"P1","Invalid")
    For the second row - =IF(AND(NOT(A50447&D50447=A50448&D50448),(G50446="P1")),"P2","Invalid")
    Wow, I didn't expect that ...

    How about posting a sample of your workbook, so that I can understand how your solution is used?

  8. #8
    Registered User
    Join Date
    07-14-2004
    Posts
    11

    Re: Conditional Formating - Automatically populate column value by grouping

    Quote Originally Posted by Marcol View Post
    Wow, I didn't expect that ...

    How about posting a sample of your workbook, so that I can understand how your solution is used?
    I am afraid the data is a little sensitive. but you may have a glance of it . The "MICR" and "Image" represent "P1" and "P2".untitled.JPG

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional Formating - Automatically populate column value by grouping

    Thank you for this glimpse into a secret world, that is an amazingly complex way to solve a simple problem!
    You'll sit well with the Admin here, and it will not be long before your wisdom will shine through to all.

    All the best
    Alistair

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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