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
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
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?
Originally Posted by shg
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.
please unmerge cells in your excel file.
you can use the following formula for products name:
And for UPC column:PHP Code:
=XLOOKUP(B3,'Tally Sheet'!$B$2:$B$14,'Tally Sheet'!$A$2:$A$14)
And for Weight column:PHP Code:
=UNIQUE('Tally Sheet'!B2:B14)
PHP Code:
=SUMIFS('Tally Sheet'!$C$2:$C$14,'Tally Sheet'!$A$2:$A$14,A3,'Tally Sheet'!$B$2:$B$14,B3)
Last edited by MiNd_HuNT3r; 01-20-2025 at 04:23 PM.
Two approaches:
Power Query
GroupBy Function![]()
Please Login or Register to view this content.
Results for eachPHP Code:
=GROUPBY(A1:D14,E1:E14,SUM,3)
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 ProductUPC Total Weight Product Column1 Column2 UPC Weight 2 NFL Football 90071 9960 24 HOFNFL Football 90071 34030College Football 0 0 80071 10790 3 NFL Football 90071 9960 24 HOFNFL Football 90071A 9960College Football 0 080071M 4980 4 NFL Football 90071 9960 24 HOFNFL Football 90071J 9960Highschool Football 0 0 20071 19505 5 NFL Football 90071 4150 10 HOFCollege Football 80071 10790NFL Football 0 0 90071 34030 6 NFL Football 90071A 9960 24 HOFCollege Football 80071M 4980NFL Football 0 090071A 9960 7 NFL Football 90071J 9960 24 ATLHighschool Football 20071 19505NFL Football 0 090071J 9960 8 College Football 80071 9960 24 MIAStandard Baseball 1422SS 8700Standard Baseball 0 01422SA 8700 9 College Football 80071 830 2 MIAStandard Baseball 1422SA 8700Standard Baseball 0 01422SS 8700 10 College Football 80071M 4980 12 FTLTotal 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
excuse me I had done a mistake but I changed the formula.
What I ended up going with is below.
Product Return
UPCPHP Code:
=IF(B3="","",INDEX('Tally Sheet'!$A$2:$A$19,MATCH(B3,'Tally Sheet'!$B$2:$B$19,0)))
WeightPHP Code:
=IF('Tally Sheet'!B2="","",UNIQUE(FILTER('Tally Sheet'!$B$2:$B$19,'Tally Sheet'!B2:$B$19<>"")))
Is the XLookup more efficient?PHP Code:
=IF(B3="","",SUMIFS('Tally Sheet'!$C$2:$C$14,'Tally Sheet'!$B$2:$B$14,B3))
XLOOKUP is the best option for searching both sides (left and right).
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?
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.
Yes, you can use the following formula for products name:
And for Color and UPC columns: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 Weight column:PHP Code:
=UNIQUE('Tally Sheet'!B2:C19)
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)
Last edited by MiNd_HuNT3r; 01-21-2025 at 05:28 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks