+ Reply to Thread
Results 1 to 2 of 2

There are many different ways - pick one!

  1. #1
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    There are many different ways - pick one!

    EDIT. To give thanks to the forum members who contributed thier time and knowledge. NBVC, DO and DLL

    Pikes thread "the best of Excel Forum" has inspired this post - and I will be adding to that one later with suitable extracts from my Excel Folder of magic tricks which I have created from solutions posted on this site........

    The other day a poster started a thread with this title "Vlookup or other formula to return data given criteria" it looked like an interesting challenge so I decided to go about investigating a solution and cobbled one together from my aforemention super folder! It worked but i was convinced there was another more efficient way, as such I posted a new thread asking for second opinions - I would like to share the results of this with one and all as (i think its a collection of great formulae) 8 ways to skin a cat!! see the spreadsheet attached for details but here's a taster......... the lookup choose makes me shiver!! brrrrrr

    This is a great learning opportunity for any budding excel nerd!

    Vlookup with Choose
    =VLOOKUP(H2,CHOOSE({1,2},$H$2:$H$13,$D$2:$D$13),2,0)
    Vlookup if
    =VLOOKUP(H2,IF({0,1},$D$2:$D$13,$H$2:$H$13),2,0)
    Lookup
    =LOOKUP(2,1/($A$2:$A$13=E2)/($B$2:$B$13=F2)/($C$2:$C$13=$G$1),$D$2:$D$13)
    Index match no CSE
    =INDEX($D$2:$D$13,MATCH(1,INDEX(($A$2:$A$13=E2)*($B$2:$B$13=F2)*($C$2:$C$13=$G$1),0),0))
    Basic Index Match
    =INDEX($D$2:$D$13,MATCH(H2,$H$2:$H$13,0))
    Sumproduct
    =SUMPRODUCT($D$2:$D$13,--($A$2:$A$13=E2),--($B$2:$B$13=F2),--($C$2:$C$13=$G$1))
    Sumifs
    =SUMIFS($D$2:$D$13,$A$2:$A$13,E2,$B$2:$B$13,F2,$C$2:$C$13,$G$1)
    =INDEX($D$2:$D$13,MATCH(1,($A$2:$A$13=E2)*($B$2:$B$13=F2)*($C$2:$C$13=$G$1),0))
    Attached Files Attached Files
    Last edited by Blake 7; 02-16-2011 at 11:08 AM.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: There are many different ways - pick one!

    Hi Blake 7
    i like it
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ 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