+ Reply to Thread
Results 1 to 7 of 7

Index small if using choice of columns based on cell

  1. #1
    Registered User
    Join Date
    10-17-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    39

    Index small if using choice of columns based on cell

    I am looking for help in adjusting an exiting formula

    I have the following array formula.

    =IFERROR(INDEX('Actuals Input'!$AC$4:$AC$7885,SMALL(IF('Actuals Input'!$AF$4:$AF$7885=$C$52,ROW('Actuals Input'!$C$4:$C$7885)-3),ROW('Actuals Input'!B1))),"")

    I want to amend the part that is underlined, so that it choses either column V or X based on the the value of 'Calculations'!B49 being TRUE for column X and FALSE for column V.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index small if using choice of columns based on cell

    Perhaps a small sample workbook?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-17-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Index small if using choice of columns based on cell

    Fotis1991,

    Sorry - a sample workbook is going to prove too difficult given its size and the content.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index small if using choice of columns based on cell

    So in this case the best that i can do is to show you another thread with same formula that i(we) offered a solution for multiply choices.

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

    Good luck.

  5. #5
    Registered User
    Join Date
    10-17-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Index small if using choice of columns based on cell

    Thanks Fotis,

    The formula that you offer is essentially the same as what I have - what I am after is:

    =IFERROR(INDEX('Actuals Input'!$X$4:$X$7885,SMALL(IF('Actuals Input'!$X$4:$X$7885=$D$52,ROW('Actuals Input'!$C$4:$C$7885)-3),ROW('Actuals Input'!B2))),"")

    To change the underlined column from 'X' to 'V' if cell D53 changes from 'Service Code' to 'Activity Code'.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Index small if using choice of columns based on cell

    As i said if i don't have a sample workbook i can not test anything...Just a quess...trying to help..

    =if(d52='Service Code',INDEX('Actuals Input'!$X$4:$X$7885,SMALL(IF('Actuals Input'!$X$4:$X$7885=$D$52,ROW('Actuals Input'!$C$4:$C$7885)-3),ROW('Actuals Input'!B2))),if(d52='Activity Code',INDEX('Actuals Input'!$v$4:$v$7885,SMALL(IF('Actuals Input'!$X$4:$X$7885=$D$52,ROW('Actuals Input'!$C$4:$C$7885)-3),ROW('Actuals Input'!B2))))

    Of course UNTESTED.

  7. #7
    Registered User
    Join Date
    10-17-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Index small if using choice of columns based on cell

    Fotis,

    Again, many thanks.

    The formula does not work in its current state, I will try to play with whay you have given me to get it to work.

    Trax

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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