+ Reply to Thread
Results 1 to 9 of 9

Reversing large-if array formula

  1. #1
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Post Reversing large-if array formula

    In the thread below I populated a range in decreasing order, given that it meets two conditions.

    http://www.excelforum.com/excel-form...-function.html

    Now that I have performed some calculations on the range, I want to put back the new numbers in the original order.

    In the attached spreadsheet column C should be a formula which takes the values from the range L1:03, and "reverses" the instructions of the formula in the range G1:J3.



    Happy Thanksgiving Americans.
    Attached Files Attached Files

  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: Reversing large-if array formula

    Hi,

    Not entirely sure what you're getting at. Could you add the results that you expect to see?

    In case it helps if I know I need to get back to an original data order when I've played around with various sorts and moves I find it useful to add a 1,2,3....series of numbers before I start anything, then just use that column to reverse everything
    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
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Re: Reversing large-if array formula

    Richard, I think you caught a mistake in the first workbook I posted. I used RAND() to transform the values, but then I think the range L1:03 updated once more after I had already pasted in the values in column C.

    The new attached workbook should fix that.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Re: Reversing large-if array formula

    Does that make sense?

    Can you see how cell D1(23) goes to cell I3(23), which in turn is transformed into cell N3(46.66).

    Now I want the value of cell N3 to go to cell C1, next to cell D1, hence why cell C1 is a red 46.66.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Reversing large-if array formula

    Maybe in C1 then drag down:

    Please Login or Register  to view this content.
    Quang PT

  6. #6
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Re: Reversing large-if array formula

    Bebo, the formula works as intended, thank you.

    I should have posted a more complete example of my question, but the column C solution should be able to accommodate for a changing column B criteria - please see the attached workbook for what I mean. The solution should be able to "account" for rows 1-7 being different from rows 8-15, and rows 16-24, and so on, where each new row range may be a random number of rows.

    So the new problem I have is that the range F1:O4 is defined using absolute references.

    I believe the only way to fix this is using VBA where I add x-number of rows (to your F1:O4 ranges) every time we have a new column B criteria.

    So for example cell C8 will be equal to the dragged down cell C7 PLUS an additional 7 rows, to the appropriate ranges. Now, cell C9 will be equal to the dragged down cell C8 value, but no additional rows will be added because cell B8 and cell B9 are the same.

    My answer is confusing me so I can't imaging how you guys feel. I will post a solution if I reach one.
    Attached Files Attached Files
    Last edited by lostest; 11-27-2015 at 02:12 PM. Reason: spelling

  7. #7
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Re: Reversing large-if array formula

    Bebo,

    Is there any way you can adapt the references of your formula to the ranges in the attached worksheet.

    The target location of the formula is column H. I am trying to pull range JK2:JO6 numbers based on the range AM2:AQ6 data.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Re: Reversing large-if array formula

    bump......
    Attached Images Attached Images

  9. #9
    Forum Contributor
    Join Date
    10-10-2015
    Location
    the Dysfunctional Empire of Bulgaria
    MS-Off Ver
    2010
    Posts
    102

    Re: Reversing large-if array formula

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

+ 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. Alternative to using an array formula for {=LARGE(IF(... function
    By Rabiah in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 05-30-2014, 05:52 AM
  2. Macro which replace large array formula
    By ALEZI in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2014, 02:32 PM
  3. [SOLVED] ARRAY Formula matching LARGE, getting duplicated results
    By Ricardo Mass in forum Excel General
    Replies: 9
    Last Post: 03-10-2014, 09:04 AM
  4. Reversing Rank Function to retrieve Large to Small in Order
    By greykitten in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-22-2013, 02:35 PM
  5. [SOLVED] Sum Large values along with Count Condition - Array Formula
    By acsishere in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-28-2013, 05:45 PM
  6. Adding Array Large Formula To Cell Via VBA
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2011, 02:45 PM
  7. MS Excel 2002 Array Formula =large
    By fortbibby in forum Excel General
    Replies: 2
    Last Post: 01-10-2011, 04:10 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