+ Reply to Thread
Results 1 to 7 of 7

Why I cannot switch formulas in a complex formula?

  1. #1
    Registered User
    Join Date
    03-24-2022
    Location
    Hungary
    MS-Off Ver
    365
    Posts
    50

    Question Why I cannot switch formulas in a complex formula?

    Hello,

    I'm trying to achieve to get the number on the top of a column.
    Firstly, I got the basic formula for getting the top numbers with: =LARGE(Table!C2:AJ2; 1) It is 26,86567 and I want the number on top of it's column which is 33.

    I tried to get the number on top of the column with: =LARGE(OFFSET(Table!C2:AJ2; -1; 0; 1; 1); 1)
    The problem with this is it wants to offset from the start of the reference and it is getting 2 because that is above the C2 cell.

    I thought if I switch the functions then it will solve the problem but it is not working because of an error.
    =OFFSET(LARGE(Table!C2:AJ2; 1); -1; 0; 1; 1)

    Also, I cannot get a result If I want to check for the 2nd 3rd etc numbers in the LARGE function. I think the second and third step is in connection that is why it is not working.

    Maybe would there be any method to not just offset with X rows or columns but automatically check for the highest or 'leftest' cells?

    Excel forum OFFSET help.xlsx

  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,181

    Re: Why I cannot switch formulas in a complex formula?

    Explain the logic - don't expect us to reverse engineer non-functioning formulae!
    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
    Registered User
    Join Date
    03-24-2022
    Location
    Hungary
    MS-Off Ver
    365
    Posts
    50

    Re: Why I cannot switch formulas in a complex formula?

    I tried to get the top X numbers of the reference (only the biggest 1 for starting). I got it with the LARGE function. Then I wanted to get the number on the top of it's column which would be 33. The problem was that I couldn't achieve it. I can't really figure out how the OFFSET function is working because it is offsetting from the first cell of the reference not from the actual LARGE biggest number. Also I don't know if there is a method to offset to the top of a column or to the left of a row.

  4. #4
    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,181

    Re: Why I cannot switch formulas in a complex formula?

    Does this do what you want?

    =LOOKUP(2,1/(Table!C2:AJ2=LARGE(Table!C2:AJ2,1)),COLUMN(Table!C2:AJ2))-1

    In Hungarian:

    =KERES(2;1/(Table!C2:AJ2=NAGY(Table!C2:AJ2;1));OSZLOP(Table!C2:AJ2))-1

  5. #5
    Registered User
    Join Date
    03-24-2022
    Location
    Hungary
    MS-Off Ver
    365
    Posts
    50

    Re: Why I cannot switch formulas in a complex formula?

    I don't know what sorcery is this but yes, thank you so much, it seems to be working! I could not figure it out myself

  6. #6
    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,181

    Re: Why I cannot switch formulas in a complex formula?

    Glad to have helped.

    No sorcery, just experience ...

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Why I cannot switch formulas in a complex formula?

    Try =MATCH(LARGE(IFERROR(B2:AJ2,0),1),B2:AJ2,0), you can copy down to find the column with the largest number in each row.

+ 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: 2
    Last Post: 03-05-2022, 01:03 PM
  2. Single Button Toggle Switch To Switch Between Columns
    By Zaerick in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2022, 11:55 PM
  3. [SOLVED] Switch between formulas using drop down list
    By gko_87 in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 05-10-2017, 05:13 PM
  4. A formula for expanding complex formulas???
    By Solid Jexcel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-16-2015, 05:08 AM
  5. Combine Multiple Complex Index Match Formulas to one Formula
    By Brawnystaff in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-19-2015, 10:55 PM
  6. Poll on - Lots of simple formulas vs fewer but more complex formulas
    By gassiusmax in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-20-2014, 08:51 PM
  7. Replies: 4
    Last Post: 06-06-2011, 02:11 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