+ Reply to Thread
Results 1 to 13 of 13

Conditional formatting using Icon sets (comparing data to data in array)

  1. #1
    Registered User
    Join Date
    12-23-2012
    Location
    Dubai, United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    22

    Conditional formatting using Icon sets (comparing data to data in array)

    Hi Folks,

    I already know you can't specify an array in the Icon area in conditional formatting. I'd like the arrow indicators with the data values and not in a separate column (which is pretty easy). The purpose is I have atleast 6 different columns worth of data I'd like a up down comparison and creating 6 different columns just for the indicators defeats the purpose of having a summary table.

    Array = (B2:C11)
    Task = compare values across columns in same row (e.g. C2 with B2)
    Requirement = Arrow indicators in column C with the data values

    I've included the ideal output in cell ref C2 in attached example

    I've trawled the forums and found solutions that require creating a separate column (and VB macros). Any possible way this can be done without macros?

    PS - First time I'm posting on any excel forum so please excuse the verbosity

    kind regards, Dims

    EXAMPLE.xlsx

  2. #2
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    Hi darth.dims .

    Like this ?
    See your example modified.
    Last edited by Anka; 12-23-2012 at 08:10 PM. Reason: I made a mistake. I apologize.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    @Anka, i just looked at you're solution. you have nothing in that file except the OP's orginal data?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    Quote Originally Posted by FDibbins View Post
    @Anka, i just looked at you're solution. you have nothing in that file except the OP's orginal data?
    Really? I think I made a mistake when I upload .

  5. #5
    Registered User
    Join Date
    12-23-2012
    Location
    Dubai, United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    Hi Anka,

    Thanks for giving this a shot. It's still off from what I'm expecting but I think that's my fault for not clarifying it.

    I've included another column (D) with the difference and the expected output. But I'd like to avoid creating column D and include the indicators in C. The expanded the values after decimal.

    Basically:
    1) Up Arrow if (C2-B2)>0
    2) Level Arrow if (C2-B2)=0
    3) Down Arrow if (C2-B2)<0

    Example.xlsx

  6. #6
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    OK. My English is not good (even pretty bad). Because (I realize) I no understood what you want.
    Your second example is basically what I wanted to do. To apply an conditional formatting.
    That's not what you wanted? To see the icon in the same cell with the result?

    Or if you add a new column to use a formula like that ?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Anka; 12-23-2012 at 09:15 PM.

  7. #7
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    Can you use cell color (green=increase, yellow=no change, red=decrease) or does it have to be an Icon set?

  8. #8
    Forum Contributor Anka's Avatar
    Join Date
    08-25-2012
    Location
    Lisbon
    MS-Off Ver
    Excel 2016
    Posts
    174

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    Or maybe this example will help you

    See here.

  9. #9
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    I don't think you can do what you describe with Excel's current Cond Format rules. Will a colored cell version work - comparing year b to year a?
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-23-2012
    Location
    Dubai, United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    Hey Anka,

    Man, your English is no problem with me. I understand you well and, more importantly, you're really trying to help. I'm grateful

    Your formula is actually pretty neat but is a problem if I try to apply any calculations because of the special character + number format. Check out column F in attachment and you'll see what I mean.

    Example.xlsx

    If this were possible using the icons in conditional formatting you'd have no problem calculating the numbers.

    Steve - I think your solution's the best way about it given the default settings. Had to settle this for a work related problem today and ended up building additional columns with the math but with indicator only (no C2-B2 values).

    Thanks loads guys. Really appreciate the help.

    kind regards, dims

  11. #11
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    Hi darth.dims

    Try in F2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Kevin
    Last edited by Kevin UK; 12-24-2012 at 01:46 PM.

  12. #12
    Registered User
    Join Date
    12-23-2012
    Location
    Dubai, United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    Hi Kevin,

    Thanks for this. Embarassed to say I missed it because I was looking at the more complicated bit and didn't see the value add to Anka's solution, which you spotted.

    Marked it solved.

    Season's greetings folks. Hope you guys and your families have a wonderful time.

    kind regards, Dims

  13. #13
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Conditional formatting using Icon sets (comparing data to data in array)

    Hi darth.dims

    Thank you for the feed back.

    Kevin

+ 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