+ Reply to Thread
Results 1 to 2 of 2

Can anyone flip this formula...

  1. #1
    Forum Contributor
    Join Date
    07-17-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel for O365
    Posts
    197

    Can anyone flip this formula...

    Hi all,

    In one sheet I have two columns of data:

    ---A---B---
    1--A---1
    2--B---2
    3--C---5
    4--D---4
    5--E---6
    6--F---3
    7--G---6

    Originally, what I needed in a separate sheet was to create a list of cells from A1:A7, where the cell next to in B1:B7 is greater than or equal to 5.

    When copying the formula down it should then read:

    ---A
    1--C (Content of A3)
    2--E (Content of A5)
    3--G (Content of A7)


    This formula did just the job just fine... =IFERROR(INDEX($A$1:$A$7,SMALL(IF($B$1:$B$7>=5,ROW($A$1:$A$7)-ROW($A$1)+1),ROWS(C$1:C1))),"")


    Does anybody know how to flip it though so instead of going down rows it would go across columns instead... such as...

    ---A---B---C
    1--C---E---G
    2--


    Many thanks in advance.

    Jason

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Can anyone flip this formula...

    Just change:

    ROWS(C$1:C1)

    To:

    COLUMNS($C1:C1)

    Copy across as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. How to flip 1st Category?
    By kyles123 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-10-2013, 12:36 AM
  2. Flip the code around
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2013, 11:45 PM
  3. Excel 2007 : How to flip row order
    By WolfpackRed in forum Excel General
    Replies: 7
    Last Post: 04-05-2011, 01:58 PM
  4. Flip the spreadsheet
    By Clash in forum Excel General
    Replies: 2
    Last Post: 10-23-2007, 04:37 PM
  5. [SOLVED] hOW DO i FLIP THE X AND Y AXIS
    By keen learner in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-10-2006, 03:15 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