+ Reply to Thread
Results 1 to 5 of 5

Need help with a complex formula I cant solve. Please help. Re-order column numbers.....

  1. #1
    Registered User
    Join Date
    07-28-2013
    Location
    Athens
    MS-Off Ver
    Excel 2010
    Posts
    55

    Smile Need help with a complex formula I cant solve. Please help. Re-order column numbers.....

    Hello, need help with a formula

    Ok heres the sample and I will explain what is the problem above:
    A
    B
    C
    1
    Priority
    Re-Ordered Priority
    Team Or Single
    2
    3
    Team 1
    3
    10
    Team 1
    4
    9
    Team 2
    5
    1
    Team 2
    6
    6
    Team 3
    7
    2
    Team 3
    8
    5
    Team 4
    9
    8
    Team 4
    10
    7
    Team 4
    11
    4
    Team 4

    I have write a complex formula to give priorities in the column A and a second complex formula to check somes Dates in another column (i have not inlcude it here) and if a date of a row it's the same with another row, then eg on C2 cell we have a Team and not a Single task, the same formula are able to separate Teams, as you can see Team 1, Team 2, etc...

    What I have not write and I have no inspiration at all and I don't know what to do is: HOW TO RE-ORDER PRIORITIES IN COLUMN B IF WE HAVE A TEAM IN COLUMN C AND NOT A SINGLE

    Let me give an example:
    A
    B
    C
    1
    Priority
    Re-Ordered Priority
    Team Or Single
    2
    3
    1
    Team 1
    3
    10
    2
    Team 1
    4
    9
    2
    Team 2
    5
    1
    1
    Team 2
    6
    6
    2
    Team 3
    7
    2
    1
    Team 3
    8
    5
    1
    Team 4
    9
    8
    4
    Team 4
    10
    7
    3
    Team 4
    11
    4
    2
    Team 4

    As you can see, what I want is for example B2 takes the value 1 because A2 is smaller than A3 and of cource because we have a Team not a Single on C2.
    This is an easy formula because we have only 2 cells to check that belongs to Team 1
    The formula goes like this:
    Please Login or Register  to view this content.
    Ok now let's go for the second row.
    I guess the formula goes like this to check both next and previous cells:
    Please Login or Register  to view this content.
    Now the formula is still problematic, because if we have a team with more than 2 rows, eg TEAM 4 have 4 rows, I will need to write some kind of bigger formula or to write a formula with a combination of INDEX or Vlookup???

    I really don't know, for some reason I have stuck.

    I need help. Please. Any ideas???

    Thanks, Nicolas

    ------------------------------UPDATE
    This is the solution, thanks to Fluff13
    Quote Originally Posted by Fluff13 View Post
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by lagiosman; 03-31-2021 at 12:40 PM.
    ~Our technology has exceeded our humanity~

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,473

    Re: Need help with a complex formula I cant solve. Please help. Re-order column numbers...

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,746

    Re: Need help with a complex formula I cant solve. Please help. Re-order column numbers...

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

  4. #4
    Registered User
    Join Date
    07-28-2013
    Location
    Athens
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Need help with a complex formula I cant solve. Please help. Re-order column numbers...

    Quote Originally Posted by AliGW View Post
    There are instructions at the top of the page explaining how to attach your sample workbook.
    I am sorry. It will not happen again. I did not have my attention there. I am sorry


    Quote Originally Posted by Fluff13 View Post
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I don't believe it. Thank you so much. Of course countifs, this is the problem with me, I always looking to combine formulas instead to write a single function of formula like countifs.

    Thank you so much.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,746

    Re: Need help with a complex formula I cant solve. Please help. Re-order column numbers...

    You're welcome & thanks for the feedback.

+ 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. [SOLVED] Formula for making numbers in random order change to ascending order
    By bansche123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2021, 09:18 AM
  2. Batch solve complex excel formula
    By levatus in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-01-2019, 02:27 PM
  3. Complex auto fill or order sheet based on column values.
    By forestavekids in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-02-2016, 03:46 AM
  4. Replies: 16
    Last Post: 07-17-2015, 04:16 PM
  5. Excel to sort complex numbers in correct order
    By RichTea88 in forum Excel General
    Replies: 5
    Last Post: 12-04-2014, 08:18 AM
  6. Replies: 1
    Last Post: 06-29-2012, 03:21 AM
  7. How do I make FORMULA TO SOLVE CURVE OR 2ND ORDER EQUATION?
    By HANY in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2005, 09:05 AM

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