+ Reply to Thread
Results 1 to 5 of 5

[SOLVED] Formula for looking up cost

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    [SOLVED] Formula for looking up cost

    Hello,

    I need a formula to look up cost. I have a sales report, I need to add the corresponding cost depending on what month the item is sold. Please see my sample on the column D.

    I read a lot about array formulas. I heard that it is better. But I do not know how to use it. Can this be set up using Array formula?

    Thanks for the help.

    Jackson
    Attached Files Attached Files
    Last edited by jackson_hollon; 12-13-2014 at 07:45 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Formula for looking up cost

    In B3 and following you have some dates form future (or may be from Mac?) - format this column as full date (with year) to see it).
    but if there were appropriate ones - corresponding to row1 dates, you could use standard formula here:
    Formula: copy to clipboard
    =INDEX($L$2:$W$6,MATCH(C2,$K$2:$K$6,0),MATCH(B2,$L$1:$W$1,0))

    if you want to focus just on month (year or day does nor matter), then indeed array formula would do:
    Formula: copy to clipboard
    =INDEX($L$2:$W$6,MATCH(C2,$K$2:$K$6,0),MATCH(MONTH(B2),MONTH($L$1:$W$1),0))
    Last edited by Kaper; 12-13-2014 at 07:18 AM.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Formula for looking up cost

    Vikas_Gautam,

    Thank you for the reply. Your formula works as well.

    Thanks a again.

    Jackson

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Formula for looking up cost

    Here is another alternative.
    Non CSE one.
    Formula: copy to clipboard
    =INDEX($L$2:$W$6,MATCH(C2,$K$2:$K$6,0),LOOKUP(MONTH(B2),MONTH($L$1:$W$1),COLUMN($L$1:$W$1)-COLUMN($L$1)+1))

    Put this in D2 and drop down.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  5. #5
    Forum Contributor
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 365
    Posts
    485

    Re: Formula for looking up cost

    Kaper,

    Thank you. This is exactly what I want. Thanks.

    Jackson

+ 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] Duration of phone call and total cost.....how to work ut cost per minute ?l
    By monkeyman90210 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2012, 04:18 AM
  2. Replies: 3
    Last Post: 03-16-2010, 01:26 PM
  3. Formula For Total Cost of Increasing Item Cost
    By dwax in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-05-2009, 01:10 PM
  4. Cost Driver calculation - Looking for formula/macro to calculate manpower cost alloca
    By Swastik Banerje in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-30-2009, 11:18 AM
  5. Cost Driver Analysis - Need formula to allocate manpower cost
    By Swastik Banerje in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2009, 11:16 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