Sorting multiple columns based on product name in Excel - excel

I have a question about sorting multiple columns based on name. I know this is a job for vlookup or index match based on my Google results, but I am having trouble creating my solution. I am creating a worksheet that will have two columns for everyday of the month.
So the column names across will be: Product, Sales, BLANK, Product, Sales, etc) Some of the columns have more products and I want all the columns to have the same order.
So for example if the prduct was it Column A, but not column D, there would be a blank row in D to indicate this.
Can someone walk me through creating this formula?

If you have an option of keeping the data in table format (example below), then Pivot table will be an easy solution.
Data (wouldn't have bullets but I couldn't format it differently here):
Date Product Sales
Jan 1 prod1 $1,235.00
Jan 1 prod2 $5,104.00
Jan 1 prod3 $21.00
Jan 2 prod1 $254.00
Select all your data, then in the Menu bar click on Insert -> Pivot Table -> Ok. Choose date for your Column Headers, Product for your Row Headers and Sales for Values. Hope this helps!

Related

Copy entire rows that has unique value on Excel

I have a table with several rows which may contain an equal value (specifically the product code) I have to create another table with a summary of the quantities of the products, so for example, if I have 3 identical products in table 1, in the summary table I only need to have one time that product code with a column that will show me quantity = 3 and the other columns must be filled in with the other product information, on google sheet I managed to do it with this formula: =unique(query(scan!b5:j,"select b,c,d,e,f,g,h",1))
EXAMPLE
how do I do this with excel functions?

EXCEL - converting a huge dataset from minutes to days

I have a huge dataset that goes from row A2 to row A105393.Each row has a timestamp of 5 minutes.
For example row A2 contains the timestamp of 2020-01-01 00:00:38 while row A3 shows 2020-01-01 00:05:38.
This goes on until the the end of 2020.
What I want is to summarize all those minutes into daily outputs. To get the daily output for 2020-01-01, I have to manually drag and use the SUM function from A2 to A289. Having a dataset containing 105393 rows, this is gonna take some while.
Is there any other easier way I can do this such that I can get the the daily outputs?
Thanks in advance!!
Edit: Here is how a portion of it looks.
Let's say I want the total demand for that whole day, how can I do this instead of dragging all the rows?
In row 2 use:
=SUMPRODUCT(B$2:B$105393*(INT(A$2:A$105393)=INT(A$2)))
It will tell the sum of column B where the date without timestamp (INT function) is the same in column A.
You can create a Pivot table and then summarize by Day.
Select any cell in the list of dates
Insert > PivotTable
Drag Timestamp to Rows & Demand to Values
Select any date cell in the pivot table
Group field
Choose Days
In pictures:
If you separate dates out into a new column, you then can get what you want easily using Data -> Subtotoal.
Use =YEAR(A2)&"-"&MONTH(A2)&"-"&DAY(A2) to get date.

Excel Pivot Table Output-how to designate it to appropriate cells on another worksheet

I have a list of about 4,500 patients and 4,000 ICD Codes. I used an Excel Pivot Table to count and sort the number of times they were diagnosed with specific codes. My objective is to list each patients top three diagnoses(by count) in a spreadsheet.
I am stuck on how to transfer the pivot table results to the spreadsheet.
Here is an example of what my data looks like, columns A and B are what I have, columns D thru G are what I would like to end up with:
Columns A and B aren't in a great format to work with and you could probably create a pivot table that looks like D through G instead, but working with what you've got I propose the following:
=INDEX($A:$A,MATCH($D2,$A:$A,0)+1)
=INDEX($A:$A,MATCH($D2,$A:$A,0)+2)
=INDEX($A:$A,MATCH($D2,$A:$A,0)+3)
In columns E, F, and G, respectively.
What this does is search the column for the name and the shift down 1, 2, or 3 columns for the most, second most, and third most used Dx. This assumes the counts are sorted in descending order.

Excel: Index match if date matches month?

I have two excel sheets:
Data:
Column A Column E
01/01/2017 Supplier 1
05/01/2017 Supplier 2
05/01/2017 Supplier 1
Sheet 2:
I am trying to look up the supplier where the month of the date in column A matches the month number in cell F11.
F11 = 1
=IF(ISERROR(INDEX(Data!$A:$I,SMALL(IF(MONTH(Data!A:A)=$F$11,ROW(Data!$A:$A)),ROW(1:1)),5)),"",INDEX(Data!$A:$I,SMALL(IF(MONTH(Data!A:A)=$F$11,ROW(Data!$A:$A)),ROW(1:1)),5))
For some reason this doesn't work and i get no result.
I also need to only list each supplier name the once, unique values. But i believe my formula gives me the same result twice.
Please can someone show me where i am going wrong?
Can't you do this with a pivot table?
Just drag the date field into the columns box, then right-click, choose 'Group' and choose 'months'. Then drag the supplier field underneath it and you should get a list of all unique suppliers by month.
Edit:
Example below.

Excel - trying to identify top 3 sales numbers in column d, and return information from corresponding column a

Excel - trying to identify top 3 sales numbers in column D (D5:D:41), and return information from corresponding column A (A5:A41)
You can get the top 3 with
=INDEX($A$5:$A$41,MATCH(LARGE($D$5:$D$41,ROW(A1)),$D$5:$D$41,0))
Copy down two rows.
You could use a pivot table to very easily get his information.
Select insert a pivot table
Select your data
In the pivot table window place the 'Name' field into the 'Row Labels' box and the 'Sales' field into the 'Values' box.
This should give you a pivot table with a list of people and the sum of their sales, making it very easy to see who comes out top.

Resources