+ Reply to Thread
Results 1 to 3 of 3

formatting cells in a column by formula or macros

  1. #1
    Registered User
    Join Date
    10-04-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    1

    formatting cells in a column by formula or macros

    Dear all,

    I have a question about a case in excel.

    I am doing a research with the following information. In column A, I have the name of the buyer company, column B cells that contain numbers marked in yellow,blue or green depending on certain characteristics. I would like to mark the companies in column A in different colors (or some other recognizable way) as described below.

    column A column B
    Materials Inc green
    Materials Inc blue
    Rayon Inc green
    Rayon Inc green
    Rayon Inc green
    Commun Corp yellow
    Commun Corp yellow
    Commun Corp yellow
    Commun Corp blue
    Commun Corp yellow
    Commun Corp yellow
    Commun Corp blue
    Commun Corp green


    I would like to mark the companies in column A in different colors according to the following criteria:
    orange: if there are only yellow cells in column B opposite the specific company in column A
    red: if there are only blue cells in column B opposite the specific company in column A
    pink: if there are only green cells in column B opposite the specific company in column A
    brown: if there are yellow, blue and green cells in column B opposite the specific company in column A
    grey: if there are yellow of blue cells in column B opposite the specific company in column A

    Do you know a suitable function in excel or Macros that can help with the formatting, because I have tens of thousands of companies and it will take too much time to do it manually.

    Thank you very much in advance!
    Compare Excel | Trading Add-in

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: formatting cells in a column by formula or macros

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: formatting cells in a column by formula or macros

    Are the colours in column B the result of formatting or of conditional formatting ?
    If it's the result of conditional formatting please specify the conditions (formulae).



+ 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