+ Reply to Thread
Results 1 to 11 of 11

Pulling Information (Formulas)

  1. #1
    Registered User
    Join Date
    01-09-2025
    Location
    North Carolina, United States
    MS-Off Ver
    Office 365
    Posts
    8

    Pulling Information (Formulas)

    If I have a receiving report, and I wanted to pull the totals of all products received from the tally sheet to the total sheet how would i do that?
    Instead of having multiple line entry's on only sort like items.

    Receiving Book.xlsx
    Attached Images Attached Images

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,343

    Re: Pulling Information (Formulas)

    My first thought would be to use the SUMIFS() function. =SUMIFS('Tally Sheet'!$F$2:$F$14,'Tally Sheet'$A$2:$A$14,'Front Sheet'!A3) would return the total count of all records where column A is the same as the value in A3. If you set up data validation on Front Sheet column A, you could then insure that the user cannot enter something that is not found in Tally Sheet.

    Did I understand what you are trying to do?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    01-09-2025
    Location
    North Carolina, United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Pulling Information (Formulas)

    MrShorty, I don't want any information manually entered on the front sheet.
    When ever information is entered into the tally sheet, it transfers all combined information to the front sheet.

  4. #4
    Forum Contributor
    Join Date
    01-07-2025
    Location
    Iran
    MS-Off Ver
    2021
    Posts
    137

    Re: Pulling Information (Formulas)

    please unmerge cells in your excel file.

    you can use the following formula for products name:

    PHP Code: 
    =XLOOKUP(B3,'Tally Sheet'!$B$2:$B$14,'Tally Sheet'!$A$2:$A$14
    And for UPC column:

    PHP Code: 
    =UNIQUE('Tally Sheet'!B2:B14
    And for Weight column:

    PHP Code: 
    =SUMIFS('Tally Sheet'!$C$2:$C$14,'Tally Sheet'!$A$2:$A$14,A3,'Tally Sheet'!$B$2:$B$14,B3
    Attached Files Attached Files
    Last edited by MiNd_HuNT3r; 01-20-2025 at 04:23 PM.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,669

    Re: Pulling Information (Formulas)

    Two approaches:

    Power Query
    Please Login or Register  to view this content.
    GroupBy Function
    PHP Code: 
    =GROUPBY(A1:D14,E1:E14,SUM,3
    Results for each

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    1
    Product
    Column1
    Column2
    UPC
    Weight
    Count
    Customer
    Product
    UPC Total Weight Product Column1 Column2 UPC Weight
    2
    NFL Football
    90071
    9960
    24
    HOF
    NFL Football 90071
    34030
    College Football
    0
    0
    80071
    10790
    3
    NFL Football
    90071
    9960
    24
    HOF
    NFL Football 90071A
    9960
    College Football
    0
    0
    80071M
    4980
    4
    NFL Football
    90071
    9960
    24
    HOF
    NFL Football 90071J
    9960
    Highschool Football
    0
    0
    20071
    19505
    5
    NFL Football
    90071
    4150
    10
    HOF
    College Football 80071
    10790
    NFL Football
    0
    0
    90071
    34030
    6
    NFL Football
    90071A
    9960
    24
    HOF
    College Football 80071M
    4980
    NFL Football
    0
    0
    90071A
    9960
    7
    NFL Football
    90071J
    9960
    24
    ATL
    Highschool Football 20071
    19505
    NFL Football
    0
    0
    90071J
    9960
    8
    College Football
    80071
    9960
    24
    MIA
    Standard Baseball 1422SS
    8700
    Standard Baseball
    0
    0
    1422SA
    8700
    9
    College Football
    80071
    830
    2
    MIA
    Standard Baseball 1422SA
    8700
    Standard Baseball
    0
    0
    1422SS
    8700
    10
    College Football
    80071M
    4980
    12
    FTL
    Total
    106625
    11
    Highschool Football
    20071
    9960
    24
    FPW
    12
    Highschool Football
    20071
    9545
    23
    FPW
    13
    Standard Baseball
    1422SS
    8700
    60
    FPW
    14
    Standard Baseball
    1422SA
    8700
    60
    FPW
    Sheet: Tally Sheet
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Forum Contributor
    Join Date
    01-07-2025
    Location
    Iran
    MS-Off Ver
    2021
    Posts
    137

    Re: Pulling Information (Formulas)

    excuse me I had done a mistake but I changed the formula.

  7. #7
    Registered User
    Join Date
    01-09-2025
    Location
    North Carolina, United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Pulling Information (Formulas)

    What I ended up going with is below.

    Product Return
    PHP Code: 
    =IF(B3="","",INDEX('Tally Sheet'!$A$2:$A$19,MATCH(B3,'Tally Sheet'!$B$2:$B$19,0))) 
    UPC
    PHP Code: 
    =IF('Tally Sheet'!B2="","",UNIQUE(FILTER('Tally Sheet'!$B$2:$B$19,'Tally Sheet'!B2:$B$19<>""))) 
    Weight
    PHP Code: 
    =IF(B3="","",SUMIFS('Tally Sheet'!$C$2:$C$14,'Tally Sheet'!$B$2:$B$14,B3)) 
    Is the XLookup more efficient?

  8. #8
    Forum Contributor
    Join Date
    01-07-2025
    Location
    Iran
    MS-Off Ver
    2021
    Posts
    137

    Re: Pulling Information (Formulas)

    XLOOKUP is the best option for searching both sides (left and right).

  9. #9
    Registered User
    Join Date
    01-09-2025
    Location
    North Carolina, United States
    MS-Off Ver
    Office 365
    Posts
    8

    Re: Pulling Information (Formulas)

    Now what I am running into is, sometimes and its rare, but the UPC codes will match the same product but different colors. I would need the cell to display BOTH products. Is that possible?

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,669

    Re: Pulling Information (Formulas)

    Did you explore the Power Query solution. It automatically updates to any changes to the source document, ie. updates, etc. without having to expand the codes.

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.

  11. #11
    Forum Contributor
    Join Date
    01-07-2025
    Location
    Iran
    MS-Off Ver
    2021
    Posts
    137

    Re: Pulling Information (Formulas)

    Yes, you can use the following formula for products name:

    PHP Code: 
    =XLOOKUP(1, ('Tally Sheet'!$B$2:$B$19=B3)*('Tally Sheet'!$C$2:$C$19=C3), 'Tally Sheet'!$A$2:$A$19""
    And for Color and UPC columns:

    PHP Code: 
    =UNIQUE('Tally Sheet'!B2:C19
    And for Weight column:

    PHP Code: 
    =SUMIFS('Tally Sheet'!$D$2:$D$19,'Tally Sheet'!$A$2:$A$19,A3,'Tally Sheet'!$B$2:$B$19,B3,'Tally Sheet'!$C$2:$C$19,C3
    Attached Files Attached Files
    Last edited by MiNd_HuNT3r; 01-21-2025 at 05:28 AM.

+ 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] Pulling information from various spreadsheets
    By lhalpin in forum Excel General
    Replies: 14
    Last Post: 11-23-2015, 01:23 AM
  2. Replies: 0
    Last Post: 10-19-2015, 11:27 AM
  3. Pulling information from one tab to another
    By narffran in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-16-2015, 10:10 AM
  4. [SOLVED] Need some help pulling information
    By andyaf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2015, 03:57 PM
  5. Replies: 2
    Last Post: 09-18-2014, 10:11 AM
  6. [SOLVED] Pulling information from one sheet to another
    By boll55 in forum Excel General
    Replies: 2
    Last Post: 11-27-2012, 12:21 PM
  7. [SOLVED] Pulling information from a list
    By smck in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2006, 01:30 AM

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