+ Reply to Thread
Results 1 to 4 of 4

How can I combined these four separate vlookup formulas into one? (Google Sheets)

  1. #1
    Forum Contributor
    Join Date
    10-29-2004
    Posts
    291

    How can I combined these four separate vlookup formulas into one? (Google Sheets)

    =NOT(ISERROR(VLOOKUP(B1,INDIRECT("OutboundCalls!B:B"),1,FALSE)))
    =NOT(ISERROR(VLOOKUP(C1,INDIRECT("OutboundCalls!B:B"),1,FALSE)))
    =NOT(ISERROR(VLOOKUP(D1,INDIRECT("OutboundCalls!B:B"),1,FALSE)))
    =NOT(ISERROR(VLOOKUP(E1,INDIRECT("OutboundCalls!B:B"),1,FALSE)))

    If you look at https://docs.google.com/a/advantagep...WKQ/edit#gid=0 I use these four formulas above on column O and get the desired results.

    I tried combining them together as =NOT(ISERROR(VLOOKUP({B1;C1;D1;E1},INDIRECT("OutboundCalls!B:B"),1,FALSE))) and used it on Column N but it doesn't give me the right results.

    I basically want Column N (using a single conditional format formula) to return the same results as Column O.

    The reason I don't just use four separate conditional formats is because it's being used on a rather large and complex Google Sheet and I think the load is too intense for everything being done. I need to simplify it.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How can I combined these four separate vlookup formulas into one? (Google Sheets)

    Just an FYI here, CF works only on TRUE or FALSE, so yo can remove the NOT and IFERROR. If vlookup finds something, it will be TRUE, if it doesnt, it will be FALSE

    This formula will work to replace all those you have...
    =sumproduct((OutboundCalls!$B$2:$B$27=B1:E1))>0
    But I cant get it to work in googledocs
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    10-29-2004
    Posts
    291

    Re: How can I combined these four separate vlookup formulas into one? (Google Sheets)

    Thanks. You just need to add a INDIRECT() to reference sheets using Google Sheets. I think that's unique to reference sheets within conditional formatting only. I made that change to your formula and it seems to work now. Thanks for your help.

    Here's the formula FYI

    =sumproduct((INDIRECT("OutboundCalls!$B$2:$B$27")=B1:E1))>0

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How can I combined these four separate vlookup formulas into one? (Google Sheets)

    Thanks for the update I dont use GD, so would not know little tricks like that - I did try using named ranges for the 2nd sheet, but that didnt work either

+ 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. VBA or Excel formulas to calculate cells in two separate sheets
    By Malowle in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-13-2012, 07:43 AM
  2. VLookup and Hlookup combined using separate workbooks
    By trentonm in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-29-2008, 03:18 PM
  3. Vlookup- multiple corresponding values (2 separate sheets)
    By mitelkm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2008, 12:50 PM
  4. [SOLVED] using vlookup between two separate sheets
    By HB Designs in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-20-2006, 01:27 AM

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