+ Reply to Thread
Results 1 to 11 of 11

Looking for formula with VLOOKUP and IF

  1. #1
    Registered User
    Join Date
    03-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    9

    Post Looking for formula with VLOOKUP and IF

    Good evening,

    I need some help with a more complex formula than I usually setup.
    I have a list of paper (documents) sent by authors who have all a Number assigned.
    Each document have several authors name. Some have a value "TRUE" and others "FALSE"
    On "sheet 1" I would like to search a document number and display the corresponding author marked as "TRUE" in sheet 2.
    I assume this should be done with a VLOOKUP and IF fonction mixed but I can not find out.

    I attache the excel worksheet for better overview.

    Thanks for your help!

    Franck
    Attached Files Attached Files

  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: Looking for formula with VLOOKUP and IF

    Try this array formula**:

    =IFERROR(INDEX(Data!B2:B20,MATCH(1,(Data!A2:A20=A2)*Data!D2:D20,0))&" "&INDEX(Data!C2:C20,MATCH(1,(Data!A2:A20=A2)*Data!D2:D20,0)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Looking for formula with VLOOKUP and IF

    I interpreted a little differently using this formula in B2 of Result sheet ..... array-entered.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and filled down.

    If it helps file attached.
    Attached Files Attached Files

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Looking for formula with VLOOKUP and IF

    OT

    What if there will be two authors for the same paper? (collective work)

  5. #5
    Registered User
    Join Date
    03-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Looking for formula with VLOOKUP and IF

    Thanks Guys,
    Always good to have smart guys working when you're sleeping! :-) I will try both formula in my original table and see which one fit the best my purpose.
    However, Sandy came up with a good question and she completely understood the purpose of this table.
    So if anyone can improve the formula with this new variable: several authors could be shown as "TRUE" and then the result should send back all the corresponding names.
    Thanks a lot for this good support!

    Franck

  6. #6
    Registered User
    Join Date
    03-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Looking for formula with VLOOKUP and IF

    After trying both option:
    The first one gave me an error on my table....I've inserted it with the CTRL+SHIFT+ENTER but did not work
    The second one works fine. I will try to understand them both anyway because I did not work before with the "INDEX" and it seems that it is more powerful than VLOOKUP.
    So if anyone can improve it giving the possibility to have several result answers if several column are sending "TRUE" for authors, that would be just wonderful!

    Thanks!

    Franck

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Looking for formula with VLOOKUP and IF

    Quote Originally Posted by franck.so View Post
    ...........So if anyone can improve it giving the possibility to have several result answers if several column are sending "TRUE" for authors, that would be just wonderful!

    Thanks!

    Franck
    I array-entered this formula in B2 of Results sheet, filled down and across to column M or until the multiples were exhausted.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The file is attached.
    Attached Files Attached Files

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Looking for formula with VLOOKUP and IF

    @FlameRetired

    I'm delighted with your formula
    It should be explained step by step everywhere as a good example

    regards
    sandy

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Looking for formula with VLOOKUP and IF

    Thank you for the feedback and kind words

  10. #10
    Registered User
    Join Date
    03-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Looking for formula with VLOOKUP and IF

    Whaoooo!
    That's a good one for sure! It's getting a bit complex for me to understand it and I now see that I still have a lot to learn.
    Thanks a lot for the time you afford me, really appreciated!
    I will close the post.
    A BIG THANK YOU!
    Franck

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Looking for formula with VLOOKUP and IF

    You're welcome...glad to help and thanks for the feedback.

+ 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. vlookup, index/match formula factoring in time(days) and IF formula
    By rishijain11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2014, 06:37 PM
  2. [SOLVED] Vlookup with column name instead of col_index_name(3rd Section of Vlookup formula)
    By akulka58 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2014, 10:42 AM
  3. [SOLVED] VBA code for change vlookup formula to vlookup formula with ISNA
    By erprasannaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2013, 03:33 AM
  4. Vlookup referencing a vlookup formula
    By laurenann in forum Excel General
    Replies: 1
    Last Post: 01-24-2011, 05:52 PM
  5. vlookup-reate a vlookup formula?
    By Pam C in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 12: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