I have a big excel file with info of companies and there companyID.
But some companies miss there companyID. So I need to copy dose rows, but I cant find how to do that.
So in this exampel I want copy row 2 and 4
A B
Company CompanyID
1 asd 123
2 sda
3 ads 321
4 sad
You have two options:
filter the column B (CompanyID) where = blank and copy the results into another sheet.
select the entire columns A and B, the insert a pivot table with Company and CompanyID in ROWS. Then FIlter the results to show only the rows where CompanyID is blank.
The second one is more interactive, you just have to refresh the pivot table to get the updated results. Of course, it depends on how many times you have to to this job and how many times the list is being updated.
select all data company name field and company id field.then select filter and sort button in excell.then click company id header and click number filter and then equal and ok
Related
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?
I have an Excel sheet with the following columns:
Customer ID
Date
Purchase Status (values = success, fail, pending)
Maximum number of rows with the same Customer ID is 4
I'd like to turn it into a table (pivot table?) where I have 5 columns:
Customer ID
Purchase 1
Purchase 2
Purchase 3
Purchase 4
That table should have 1 row per customer ID
Purchase 1 Column should show the purchase status for the customer's first purchase (based on earliest date from the Date column)
Purchase 2 column should show the purchase status for the customer's second purchase, etc.
If the customer only had 2 purchases, then only Purchase 1 and Purchase 2 columns should be populated.
So my table would look something like this:
sample table
Would really appreciate any help on how to do this. Thanks!
Here is an example on how to do this...
Data
Click on Insert -> Pivot Table, select table range and where you want the data to go and select the check box - Add this data to data model
You will see the Range in the pivot table field above all the column names -> Right click and select Add Measure.
This will open a new window. Add the Measure Name (PassFailPending in screen shot below)
In the formula section, add =CONCATENATEX(Range,[Purchase Status],", ")
Click on Check DAX formula to make sure the formula is good
Drag the various columns as you would normally create your pivot table as in screen shot below with the formula as the values...
This will create the table. As the totals don't look good, you can ...
Go To Design Tab > Select Grand Totals > Off for rows and columns
This will given below output
I have a table that looks like this:
Type Value
Movie 5
Food 3
Gas 10
Food 2
.... ....
And There's a second table I want to fill in with "Value" based on their type in the first table, so that the corresponding rows look like this:
Rent Food Movie Gas Clothing ... ( appear in specific order bc they are subcategories)
5
3
10
2
The title row is already there, so I was thinking there might be some kind of lookup method to do this? How do I do that?
your second table apperas to hold one value per row but it doesn't have a label. it does correlate to the original row number, is this by design or coincidence?
if this is by design then you can use those 2 columns, hide them if you like, get a unique list of categories by copying you r abels to a new colum, removing duplicates in the data tab, then paste special transpose in c1 to create colum headers.
so column a and b remain unchanged
row 1 contains header starting at column c
your data starts at c2
this is the formula
=Iferror(vlookup(C$1,$A2:$B2,2,false),"")
drag it down and to the right
you can copy paste special values when done to remove the formulas
for something with only a hundred or thousand cells this will be one of the easier options but i would not do this on large tables, for those i would use power query or VBA
Assuming your 1st table is in Sheet1 and 2nd table is in sheet2.. you may try to fill in Sheet2!A2
=IF(Sheet1!$A2=A$1,Sheet1!$B2,"")
and drag it all the way.. Hope you get how it works.. and what you need.
I'm trying to create an excel document with two sheets, the first one containing a list of fruit types, for example
ID Description
1 Apple
2 Orange
3 Pear
...
The second sheet would contain a reference to a row from the first sheet and some additional data.
For example
Fruit_ID Quantity Customer
1 12 Chris
3 7 Jenny
...
And when a user is adding a new row in the second sheet he would be presented with a drop down list of entries from the second sheet when setting the first column value.
The number of rows in the second sheet is dynamic ( user will be adding data into it).
How can I do this ?
Select the cells where you want to display dropdown.
Go to Data Tab > Data Validation
Enter the following criteria
Allow:List
Source: =OFFSET(Sheet1!$A$1,1,0,COUNT(Sheet1!$A$2:$A$1048576))
Change the sheet name accordingly and it will show drop-down based on the Sheet1, column 1.
Let me know if it works.
I have the following source table
Date | fruit | veg
The user has previously filtered the date by month. In another table, I want to count the number of apples and tomatoes for example. To remove the invisible rows I use the SUBTOTAL function as
=(SUBTOTAL(102;OFFSET(limiter;ROW(limiter)-MIN(ROW(limiter));;1;1)))
where 'limiter' is the date range.
Then to count the number of apples in the fruit column , I use
= SUMPRODUCT(SUBTOTAL(102;OFFSET(limiter;ROW(limiter)-MIN(ROW(limiter));;1;1)) * Table!fruit = "apple"
and it works fine.
But, if I want to add in the vegetables criteria along with the fruit, the result is 0. I tried doing the sumproduct of fruit and veg first and then add the subtotal function but it gave a huge number.
Have you considered using a pivot table? (I strongly recommend you to)
Go to a new tab, select A1 and insert, new pivot table. You can put the fruit field in the column (probably row labels - my excel is in Portuguese =/). You would instantly have a table containing as first colum the list of existing fruits.
Then add the date to the body (probably values) of the pivot table and certify the type of value shown is count.
You would intantly get the count of all fruits.
The great advantage is that you can play around with this table as easily as dragging and dropping fields in columns, rows and body/values and instantly getting the results you want without having to figure out any formula issues.
Pivot tables also allow you to filter not only the date, but any other fields you wish.