+ Reply to Thread
Results 1 to 8 of 8

Need to Use VLOOKUP alongwith another function to get "Units Shipped" value for each month

  1. #1
    Registered User
    Join Date
    10-08-2019
    Location
    Calgary, Canada
    MS-Off Ver
    MS 365
    Posts
    13

    Need to Use VLOOKUP alongwith another function to get "Units Shipped" value for each month

    Hi, I have 2 sets of files.
    1. Monthly Cost - Cost to ship to particular city per month.
    2. Monthly Units - Units shipped to particular city per month.


    As the city name appears on files multiple times (1 time for each month) I am not able to run simple VLOOKUP formula to get "Units shipped" per city per month in my "Monthly - Cost Per Unit" file.

    I don't want to use CONCATENATE as I will not be able to use it for different kind of work.

    Can someone please help me which formula I can use combining with VLOOKUP so that I can pull "Units Shipped" values for each city for each month?

    Your help is greatly appreciated.
    I have attached the files with the thread.

    -Ravi
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Need to Use VLOOKUP alongwith another function to get "Units Shipped" value for each m

    Put this in cell D2

    array formula so make sure to use CTRL+SHIFT+ENTER

    =INDEX('Monthly Cost'!$D$2:$D$10000,MATCH(A2&B2,'Monthly Cost'!$A$2:$A$10000&'Monthly Cost'!$B$2:$B$10000,0))
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Need to Use VLOOKUP alongwith another function to get "Units Shipped" value for each m

    actually a much easier formula that will take up less processing

    =SUMIFS('Monthly Cost'!$D:$D,'Monthly Cost'!A:A,A2,'Monthly Cost'!B:B,B2)

  4. #4
    Registered User
    Join Date
    10-08-2019
    Location
    Calgary, Canada
    MS-Off Ver
    MS 365
    Posts
    13

    Re: Need to Use VLOOKUP alongwith another function to get "Units Shipped" value for each m

    Hi dodydos, In which column I put the formula? In my existing file in "Monthly Cost Per Unit" sheet in column D, I want No. Of Units from "monthly Unit" sheet.

    Can you please help me to understand the formula?

  5. #5
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Need to Use VLOOKUP alongwith another function to get "Units Shipped" value for each m

    whoops sorry about that, i went after the wrong tab.

    =SUMIFS('Monthly Unit'!$D:$D,'Monthly Unit'!A:A,'Monthly - Cost per Unit'!A2,'Monthly Unit'!B:B,'Monthly - Cost per Unit'!B2)

    Here you go this is the same sumifs formula except it is looking for the city and month on the monthly Unit tab and returning the total units shipped.
    Put this formula in cell D2 of the Monthly - Cost per unit tab
    and then drag down

  6. #6
    Registered User
    Join Date
    10-08-2019
    Location
    Calgary, Canada
    MS-Off Ver
    MS 365
    Posts
    13

    Re: Need to Use VLOOKUP alongwith another function to get "Units Shipped" value for each m

    That worked.

    Thanks a lot for your help with same.

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Need to Use VLOOKUP alongwith another function to get "Units Shipped" value for each m

    Monthly - Cost per Unit

    D2=SUMIFS('Monthly Unit'!$D$2:$D$3163,'Monthly Unit'!$C$2:$C$3163,'Monthly - Cost per Unit'!$C2,'Monthly Unit'!$B$2:$B$3163,'Monthly - Cost per Unit'!$B2,'Monthly Unit'!$A$2:$A$3163,'Monthly - Cost per Unit'!$A2)


    copy down

  8. #8
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Need to Use VLOOKUP alongwith another function to get "Units Shipped" value for each m

    You are welcome, and Thanks for the Rep

+ 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. [SOLVED] if formula needed to populate either "1" or "0" based on number of units in another cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-07-2015, 11:24 AM
  2. [SOLVED] Excel 2007: How to Convert "5/2/2013" to "May" then subtract a Month so it's "Apr"
    By Golom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-19-2013, 02:00 AM
  3. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  4. [SOLVED] Function or formula to convert "text" month to number of month?
    By Steve Vincent in forum Excel General
    Replies: 1
    Last Post: 02-06-2006, 05:35 PM
  5. [SOLVED] RE: Function or formula to convert "text" month to number of month?
    By Kevin Vaughn in forum Excel General
    Replies: 0
    Last Post: 02-04-2006, 12:50 PM
  6. Replies: 1
    Last Post: 02-04-2006, 12:19 PM

Tags for this Thread

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