+ Reply to Thread
Results 1 to 6 of 6

Formula to pull from a value from a category on a date that has 3 merged rows

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Cleveland, TN
    MS-Off Ver
    Excel 2007
    Posts
    53

    Formula to pull from a value from a category on a date that has 3 merged rows

    Hello,

    I cant seem to get my formula to work properly, so I thought I would see if there were any other formulas i could use...
    In the spreadsheet, there are 2 sheets. The first sheet had Dates vertically with data horozontally, the 2nd sheet is the opposite.
    I need to pull the data of a category in sheet 1 from a date to the appropriate cell in sheet 2, the issue is that some of the data that I need to pull is 3 separate rows for one date.

    I give an example of what I needed inside the file, if anyone could help out, it would be much appreciated.



    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Formula to pull from a value from a category on a date that has 3 merged rows

    I did it with SUMPRODUCT.



    C4:

    =SUMPRODUCT((Sheet1!$E$1:$T$1=Sheet2!$A4)*(Sheet1!$A$2:$A$16=Sheet2!C$1)*(Sheet1!$E$2:$T$16))

    And copied around

    C8 is a little different. Are you just interested in the indirect of regular, as your example shows, or should it include all indirect?
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    Cleveland, TN
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Formula to pull from a value from a category on a date that has 3 merged rows

    Just regular

  4. #4
    Registered User
    Join Date
    08-16-2012
    Location
    Cleveland, TN
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Formula to pull from a value from a category on a date that has 3 merged rows

    C4:

    =SUMPRODUCT((Sheet1!$E$1:$T$1=Sheet2!$A4)*(Sheet1!$A$2:$A$16=Sheet2!C$1)*(Sheet1!$E$2:$T$16))

    Tried this, and it returned the cell with a 0. It should be 20.

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Formula to pull from a value from a category on a date that has 3 merged rows

    Ahh sorry, I forgot that I unmerged the cells and filled in the blanks with values from above.

    After unmerging, the shortcut is to select the range (in this case A2:A16), hit F5, choose blanks, hit okay, immediately hit = and click on the first cell above the topmost blank cell (A2) and then hit Ctrl+Enter.

    This fills in every row with the value above it if it is blank.

    C4:

    =SUMPRODUCT((Sheet1!$E$1:$T$1=Sheet2!$A4)*(Sheet1!$A$2:$A$16=Sheet2!C$1)*(Sheet1!$E$2:$T$16))

    and copied to G7

    C8:

    =SUMPRODUCT((Sheet1!$A$2:$A$16=Sheet2!C$1)*(Sheet1!$D$2:$D$16=Sheet2!$A8)*(Sheet1!$E$2:$E$16))

    and copied to G9


    Please see the attached.
    Copy of Test(1).xlsx

  6. #6
    Registered User
    Join Date
    08-16-2012
    Location
    Cleveland, TN
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Formula to pull from a value from a category on a date that has 3 merged rows

    Thanks. It works!

+ 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. Replies: 17
    Last Post: 12-29-2013, 10:28 PM
  2. [SOLVED] Formula or sorting method to pull apart merged data
    By IronCladRooster in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2013, 04:46 PM
  3. array formula to return sum of values based on date and category code
    By usmc0331 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-18-2013, 08:24 PM
  4. Fill category field if date macro/formula
    By propheta in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-16-2010, 11:53 AM
  5. How do I pull a merged cell from another workbook?
    By foxspirit in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-07-2006, 12:47 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