+ Reply to Thread
Results 1 to 18 of 18

How to find if a text is higher than another text in groups

  1. #1
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    How to find if a text is higher than another text in groups

    I've got different groups in excel highlighted using a helper column and Conditional Formating. I now need to know if my company is before or after another company in each group based on the year. I can't think of a nested if statement, can anyone help please? Thanks in advance. Below is an example of my sheet and what I need. I am only lookin for the statement to say before or after for my company if we are before or after Company A based on the years owned. (Two Constants)

    group 1

    Unique identifier 1 2014 My Company
    Unique identifier 1 2013 Company A
    Unique identifier 1 2012 Company B
    Unique identifier 1 2011 Company C

    Unique identifier 2 2014 Company A
    Unique identifier 2 2013 Company E
    Unique identifier 2 2012 My Company
    Unique identifier 2 2011 Company Z

    And so on and so forth....

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to find if a text is higher than another text in groups

    Hi,

    This is clearly a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results.

    That said and assuming the years are always sorted as you show then in D1 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Otherwise upload the workbook.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: How to find if a text is higher than another text in groups

    Thank you very much for your response. This kind of works. I need the formula to say before if company A owns say the 2013 year and my company owns the 2011 year and vice versa. If company A owns 2011 and I own the 2013 year for another grouping I need the formula to tell me after. Can this formula do that? Thank you for all your help with this. I truly appreciate it.

  4. #4
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: How to find if a text is higher than another text in groups

    and the years are random, the companies own all different years for each grouping so nothing stays the same.

  5. #5
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: How to find if a text is higher than another text in groups

    but all groupings have 2009-2015 in order

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to find if a text is higher than another text in groups

    Quote Originally Posted by Stewie12345 View Post
    but all groupings have 2009-2015 in order
    We need clarification. The best thing is to upload a sample workbook. We don't need zillions of rows but we do need to have enough so that it is representative of all permutations. Manually add alongside your data the results you expect.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to find if a text is higher than another text in groups

    Quote Originally Posted by Stewie12345 View Post
    Thank you very much for your response. This kind of works. I need the formula to say before if company A owns say the 2013 year and my company owns the 2011 year and vice versa. If company A owns 2011 and I own the 2013 year for another grouping I need the formula to tell me after. Can this formula do that? Thank you for all your help with this. I truly appreciate it.
    Did you try the formula with your data?

  8. #8
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: How to find if a text is higher than another text in groups

    Sorry for the late response, I had to cut down the sheet to be able to upload it. No, unfortunately it doesn't work. I am trying to upload the sheet but cant find the upload link? Also, I need to know every time my company "CB International Investments" is before or after "INA Group" for each group based on year. Thanks for your help again with this.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to find if a text is higher than another text in groups

    Hi,

    The paperclip upload icon doesn't work - no don't ask!
    You need to choose the 'Go Advanced' Option then look below the post area for the Manage Attachments option and take it from there.

  10. #10
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: How to find if a text is higher than another text in groups

    I have attached it. Column E is where I typed in what I need. Thank you again!
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: How to find if a text is higher than another text in groups

    Is there a way to Do this? If not I understand, I thought I would give it a try. It is probably tough when the information is all over the place.

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to find if a text is higher than another text in groups

    Would you explain the rule for deciding whether your company is a before or after

    For instance why in group 4 is E23 & E24 Before? There is a year 2009 in that group so logic would suggest it's After

    Why is there no result in E10:E11

    Your post #5 said the years were in order but your example shows otherwise.
    I need to understand exactly how you decide. And no doubt if the data was sorted by group and then by year the formula would be much simpler. So ist it permitted to sort the data first.

    Are the groupings exclusive. i.e. nothing in one grouping affects the results of another. Your post#3 suggests otherwise and that the years for one grouping affect the results in another group.

    I also need to know what you mean by Company A 'owning' a year. In your actual data what's the equivalent of Company A?

  13. #13
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: How to find if a text is higher than another text in groups

    There is no before or after when there is not INA and CB International on the same grouping. Also, CB is before when my company owns an older year than INA does and vice versa. I just want to know my position on each grouping when INA is on the same grouping and if I own an older year or newer year per grouping. There is no rhyme or reason per grouping on the years per group. I could own any year and so could INA which is why it would help me have a filterable column which tells me if I own a newer or older year when INA owns a year on a grouping. Is this possible? Thank you for all your time and help with this!

  14. #14
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to find if a text is higher than another text in groups

    What about the sorting? Is it permissible to sort years (ascending) within Group?

  15. #15
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: How to find if a text is higher than another text in groups

    yes, my apologies if they aren't, I was rushing to cut and paste and put them in another sheet to upload and didn't check if the data got missorted. It should have been sorted in ascending order per grouping. There are over 1000 groupings so I was hoping for a formula to save me time instead of me going manually and checking each grouping if we owned a previous year or newer year than INA when INA owned a year on the same grouping as us.

  16. #16
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: How to find if a text is higher than another text in groups

    Here is a fixed version of the file with the years in ascending order.
    Attached Files Attached Files

  17. #17
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to find if a text is higher than another text in groups

    Hi,

    I was already using the earlier file you sent which I have sorted by Group/Year

    I'm attaching two solutions albeit they both use the same principle

    1.
    Columns G:I are helper columns. I've added a formula in F2 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    2.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    #1 has the advantage of being easier to understand and adjust should you spot any anomalies elsewhere in your data.
    Attached Files Attached Files
    Last edited by Richard Buttrey; 12-16-2016 at 06:59 AM.

  18. #18
    Registered User
    Join Date
    12-14-2016
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: How to find if a text is higher than another text in groups

    THANK YOU!!!! You are AWESOME! Seriously, thank you so much!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find start and Next row with text and create Cell Address in groups
    By 2k05gt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2015, 10:06 PM
  2. [SOLVED] Wrap text on all columns from D and higher
    By davbran in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2014, 04:51 PM
  3. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  4. [SOLVED] Simple question: Switching text if a number are higher than another.
    By orjanmen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-10-2013, 02:48 PM
  5. Replies: 3
    Last Post: 12-18-2012, 07:19 PM
  6. Text higher than the row height, don't want it trimmed
    By Andrewww76 in forum Excel General
    Replies: 3
    Last Post: 09-20-2008, 08:21 PM
  7. [SOLVED] permutations of text groups?
    By green fox in forum Excel General
    Replies: 0
    Last Post: 04-27-2005, 01:06 PM

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