+ Reply to Thread
Results 1 to 4 of 4

Using two Vlookups to sum up different values

  1. #1
    Forum Contributor
    Join Date
    12-26-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    128

    Using two Vlookups to sum up different values

    Thanks to both of you
    Post marked SOLVED
    Rep added
    Attached Files Attached Files
    Last edited by rehana402003; 12-19-2019 at 10:00 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Using two Vlookups to sum up different values

    Your expected answer in F10 is incorrect, I think...

    VLOOKUP(E7,Sheet2!A:C,3,FALSE)*MIN(2,D7)+VLOOKUP(E7,Sheet2!A:B,2,FALSE)*(MAX(0,D7-2))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Using two Vlookups to sum up different values

    Try this

    =VLOOKUP(E7,Sheet2!$A$2:$D$8,3,FALSE)*MIN(D7,2)+VLOOKUP(Sheet1!E7,Sheet2!$A$2:$D$8,2,FALSE)*(D7-MIN(D7,2))

  4. #4
    Forum Contributor
    Join Date
    12-26-2015
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    128

    Re: Using two Vlookups to sum up different values

    Dear Glenn
    Yes you are right

+ 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 VLookups fail when using numerical values
    By AndyE in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2018, 01:53 AM
  2. Replace vlookups with values after a certain date.
    By jimcuk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-21-2015, 03:18 PM
  3. Vlookups that return multiple values
    By capitalsfan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-18-2013, 12:11 PM
  4. Replies: 2
    Last Post: 09-20-2013, 02:01 PM
  5. Vlookups with multiple values for same ID
    By Daniel1986 in forum Excel General
    Replies: 9
    Last Post: 06-22-2012, 03:36 PM
  6. Using VLOOKUPS to return mulitple values
    By mscomputertutor in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2010, 10:05 AM
  7. Vlookups to return format as well as values
    By kosciosco in forum Excel General
    Replies: 1
    Last Post: 11-21-2007, 09:49 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