+ Reply to Thread
Results 1 to 20 of 20

Index predominant project in a row based on higher percent project and head of the table

  1. #1
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Index predominant project in a row based on higher percent project and head of the table

    Index collumn projects to rows matching if blank or not (1).xls

    On column G i search for the project that an agent worked the most based on column % timp alocat (I, M, Q, U and so on)
    Bring the header Column row 1(H, L, P, T, X and so on) for the project results.

    I put the desired results inside comments on g3,4,5,6

    The formula that i have used with the help of ALIG works with lookup if you don`t have percents and multiple text. So i need another adapted one. As far i can`t find one on my self.


    Alex

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Index predominant project in a row based on higher percent project and head of the tab

    without knowing what will go in Cols J:K, N:O etc, and assuming XL2010, you could try:

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

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Index predominant project in a row based on higher percent project and head of the tab

    The formula that i have used with the help of ALIG ...
    Please - I am NOT AliG! I am AliGW.

    Try this:

    =LOOKUP(2,1/($I3:$CB3<>"")*($I$2:$CB$2="% timp alocat"),$H$1:$CA$1)
    Last edited by AliGW; 06-13-2023 at 02:46 AM. Reason: Workbook added.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index predominant project in a row based on higher percent project and head of the tab

    Omg sorry Ali your name is so close to that actor Sasha Baron that plays Alig So my mistake.
    I think your name contain abbreviations. A big mistake for me so sorry again ALIGW

    I may preffer ALi if you don`t mind ).

    And thank you kindly for your always good and precise reminders for me about the rules.
    Sometimes i`m in such a rush that i don`t know exactly what rules i strike but step by step i have to say i become better about this.

    Thanks for all!

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Index predominant project in a row based on higher percent project and head of the tab

    Quote Originally Posted by alexxl
    On column G i search for the project that an agent worked the most based on column % timp alocat
    Quote Originally Posted by AliGW View Post
    Try this:

    =LOOKUP(2,1/($I3:$CB3<>"")*($I$2:$CB$2="% timp alocat"),$H$1:$CA$1)
    FWIW, this method will return the header value associated with the last % entry not (necessarily) the predominant entry; in the sample the two are the same however, I suspect that in reality this is not going to be the case.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Index predominant project in a row based on higher percent project and head of the tab

    I may preffer ALi if you don`t mind ).
    That's fine! Apart from anything else, AliG is male, but I am female!!!

  7. #7
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index predominant project in a row based on higher percent project and head of the tab

    That`s a correct remark but what if i have information in near 2 collumns after % timp alocat example collumn AH, AI.

    With your index formula it`s ok only if i have blanks in those collumns and i didn`t anticipate this.
    Could you make reffer only to the %timp alocat collumn?

    I made a corection to my previous file please take a look. Actualy this is my corect problem.

    Index collumn projects to rows matching if blank or not.xls
    Last edited by alexxl; 06-16-2023 at 07:44 AM.

  8. #8
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Index predominant project in a row based on higher percent project and head of the tab

    I think @Ali forgot to add parentheses.

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index predominant project in a row based on higher percent project and head of the tab

    It`s not working as i wishh !

  10. #10
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Index predominant project in a row based on higher percent project and head of the tab

    Please, upload a sample file to describe.

  11. #11
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index predominant project in a row based on higher percent project and head of the tab

    Look at my 7 point!

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Index predominant project in a row based on higher percent project and head of the tab

    It`s not working as i wishh !
    Well, SHOW us how you want it to work, then!!!

    Explain what the 'predominant' item is.

    Hidroelectrica does NOT have the highest pecentage in timp alocat!
    Last edited by AliGW; 06-16-2023 at 08:36 AM.

  13. #13
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Index predominant project in a row based on higher percent project and head of the tab

    About you attachement in Post #7, the result is Hidroelectrica. Why is not the Raiffeisen? the rule is ?

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Index predominant project in a row based on higher percent project and head of the tab

    Thats what I've just asked - it does not seem to follow alexxi's own rules. Difficult to help when that happens ...

  15. #15
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index predominant project in a row based on higher percent project and head of the tab

    I noted in the file of #7 the result is Adservio! maybe you look at a different file. or you read the comment (sorry for that comment i forgot about it)

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Index predominant project in a row based on higher percent project and head of the tab

    In the file you clearly stated this:

    I put the desired results inside comments on g3
    !!!!

    We aren't psychic - we don't know that you don't mean that any longer.

  17. #17
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index predominant project in a row based on higher percent project and head of the tab

    Yes sorry my bad

  18. #18
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Index predominant project in a row based on higher percent project and head of the tab

    Try this

    Please Login or Register  to view this content.
    maybe, you should committed with Ctrl+Shift+Enter.
    Last edited by windknife; 06-16-2023 at 09:39 AM.

  19. #19
    Forum Contributor alexxl's Avatar
    Join Date
    04-21-2015
    Location
    Romania
    MS-Off Ver
    2019/2010
    Posts
    305

    Re: Index predominant project in a row based on higher percent project and head of the tab

    Do you even know what this means to me? Thank you very much!

  20. #20
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Index predominant project in a row based on higher percent project and head of the tab

    You are welcome.

    I have modified the answer to find the first maximum value, if data have many maimum value.

+ 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. Replies: 3
    Last Post: 08-11-2017, 03:10 AM
  2. Replies: 1
    Last Post: 06-12-2017, 09:20 PM
  3. Replies: 2
    Last Post: 05-10-2017, 07:32 PM
  4. Replies: 5
    Last Post: 08-06-2014, 01:10 PM
  5. Replies: 1
    Last Post: 05-02-2014, 03:05 PM
  6. [SOLVED] Function that concatenates multiple sub-project descriptions based on project code
    By markbpi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2012, 06:49 PM

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