+ Reply to Thread
Results 1 to 6 of 6

Display Months on multiple condition

  1. #1
    Forum Contributor
    Join Date
    09-30-2008
    Location
    London
    Posts
    127

    Display Months on multiple condition

    Dear all,

    Please see attached excel file on that I have explained what I want.

    Actually I want to display months name according to their multiple condition.

    Thanks

    Vinay
    Attached Files Attached Files
    Last edited by NBVC; 09-13-2010 at 12:58 PM.

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

    Re: Display Months on multiple condition

    You will need a VBA or addin function for that...

    Try adding this code to your VB editor (ALT+F11, Insert|Module)

    Please Login or Register  to view this content.
    then put this formula in N2:

    Please Login or Register  to view this content.
    confirm it with CTRL+SHIFT+ENTER and not just ENTER.. and copy down.
    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 Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Display Months on multiple condition

    Or possibly...

    Please Login or Register  to view this content.
    but I agree with NBVC a UDF is certainly more practical.

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

    Re: Display Months on multiple condition

    I guess I shouldn't have said...
    You will need a VBA or addin function for that...
    should have said that it would be easier or more practical with the udf... I am used to seeing this kind of problem expand to multiple more concatenations then the given samples show...

  5. #5
    Forum Contributor
    Join Date
    09-30-2008
    Location
    London
    Posts
    127

    Re: Display Months on multiple condition

    Guys,

    You both are brilliant.

    I have tried both and those are working perfect.

    Thank you very much to solve my problem

    Regards
    Vinay

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Display Months on multiple condition

    Just for comparison, my solution places each month in its own cell (from highest % to lowest).

    =IF(AND(COUNTIF($B2:$M2,">= 1.50")<COLUMNS($A$1:A1),COLUMNS($A$1:A1)=1),"Non Seasonal",IF(COUNTIF($B2:$M2,">= 1.50")<COLUMNS($A$1:A1),"",TEXT(INDEX($B$1:$M$1,MATCH(LARGE($B2:$M2,COLUMNS($A$1:A1)),$B2:$M2,0)),"mmmm"))) dragged right and down.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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