Excel Combine Rows with Partially Filled Columns - excel

Would anyone be able to assist me with the following table?
Name
Apple
Pear
Banana
Bob
Yes
Bob
Yes
Alice
Yes
Alice
Yes
John
The goal is to have the all these rows merge/join and fill in all empty columns if the unique name is present. See below for the end goal.
Name
Apple
Pear
Banana
Bob
Yes
Yes
Alice
Yes
Yes
John
Please note that I am restricted in terms of using only Excel (2016) with no ability to add add-ons.
Much appreciated!

You can do it manually easily in 3 steps:
Replace all "Yes" values with number 1
Inside "Data" tab, Consolidate data
Replace all number 1 with "Yes"
Take a look at the video:
And probably you can record a macro with this for sure and make it instantly.

Related

How do I build an Excel function to find duplicates in a column, based on other criteria in other columns?

Basically I'm trying to figure out if the Client column repeats, but based on the following criteria.
Dates have to be different
Product is the same
Ticker is the same
Clients are obviously the same as well
Dates
Product
Ticker
CLient
Yes?
13-June
Computer
XYZ
Greg
Y
14-June
Computer
XYZ
Greg
Y
14-June
Computer
XYZ
Sally
15-June
Computer
ABC
Sally
Y
16-June
Rocket
ABC
Sally
17-June
Computer
ABC
Sally
Y
Ideally, the Yes? column should contain my formula. I think I'm halfway there using counties,but I keep running into problems with the product bit.
Thanks everyone.
If you have the newest version of Excel, you can use FILTER.
For example:
=IF(COUNTA(UNIQUE(
FILTER($I$1:$L$6, $J$1:$J$6&$K$1:$K$6&$L$1:$L$6=J1&K1&L1)))>COUNTA(I1:L1),
"Y","")
if you will not use the "Y" result elsewhere in your file, I mean, if your aim is just to spot the duplicate values; just concat the fields Product, Ticker and Client in another column and apply conditional formatting to highlight duplicate values.

Lookup with multiple criteria, one a MAX value

I am trying to lookup the LOCATION of an employee (NAME) and their MANAGER from the most recent month (largest month number) in a particular QUARTER in data like this:
NAME LOCATION MANAGER QUARTER MONTH
Ryan Smith Sioux Falls Rick James 3 7
Jane Doe Tampa Bobby Brown 3 7
John Rogers Tampa Tracy Lane 3 7
Ryan Smith Sioux Falls Rick James 3 8
Jane Doe Denver Thomas Craig 3 8
John Rogers Tampa Cody Davis 3 8
So if I know the name of the employee and the quarter I'm looking up, the results should display who their last manager was and the location they were in, as these may change month to month.
I have used an INDEX and MATCH array formula:
{=INDEX($B$2:$B$7,MATCH(A12,IF($D$2:$D$7=D12,$A$2:$A$7),0))}
but this just provides the first match and not necessarily the most recent month in that quarter. I attempted to include a MAX function which looked something like this:
{=INDEX($B$2:$B$7,MAX($E2:$E7,MATCH(A12,IF($D$2:$D$7=D12,$A$2:$A$7),0)))}
but that didn't quite get me there either.
What formula do I need to get this to work?
I think I'd choose a PivotTable for its versatility and speed:
I think a pivot table is probably the best option and can easily be modified with the filters when new entries are added to the underlying data. I was working on a solution with a formula, but it requires you to add a lookup column.
The formula for the lookup column is: =E6&" "&H6&" "&I6
I wasn't clear on how the OP was going to be "entering" his employee name and quarter, so I had to make an assumption that it would be in a separate column:
And the formula in column B (which is cumbersome) is:
=VLOOKUP(A6&" "&MAX(IF(H1:H100=NUMBERVALUE(RIGHT(A6,1)),I1:I100)),$D$6:$G$11,3,FALSE)&", managed by "&VLOOKUP(A6&" "&MAX(IF(H1:H100=NUMBERVALUE(RIGHT(A6,1)),I1:I100)),$D$6:$G$11,4,FALSE)
But it works, and as long as the lookup range is adjusted, is scaleable.

Excel Vertical and Horizontal view of cells

I am trying to create a booking system using Excel. I know this may not be the best option, however so far this is what I have come up with:
sheet1 with all customer details
sheet2 with all booking details
The customer id and name are ref to sheet2 so I don't have to type them again.
On sheet2 I have the customer name in column A and in Column B dates for different days laid out horizontally.
For example:
Customer Name Course 1 Course2 Course3
John Smith 01.01.2014 02.01.2014 03.01.2014
Bob Green 02.01.2014 03.01.2014 04.01.2014
The problem I am having at the moment is not being able to identify all customers who are booked on same date. For example if I want to see all the customers who are booked for 01.01.2014, how is that possible?
Any help will be great, or if you have better ideas about creating a booking systems suggestions are welcome.
You need to change your layout, then you can apply a filter. A better layout would be:
Customer Name Course Name Date
John Smith Course 1 01.01.2014
John Smith Course 2 02.01.2014
John Smith Course 3 03.01.2014
Bob Green Course 1 02.01.2014
Bob Green Course 2 03.01.2014
Bob Green Course 3 04.01.2014
Then just apply a filter on the Date column. To see all people in the same course and on the same date, apply a filter to both the Course Name and Date columns.

Sum of values in column for each value in adjacent column

I have some data on number of pages printed which is basically a row for each print job with username and number of pages. I want a total of pages for each user.
my data looks like this:
COL1 COL2
dave 2
john 3
dave 1
sally 5
sally 1
john 2
dave 4
ben 8
and I want to end up with:
COL1 COL2
dave 7
john 5
sally 6
ben 8
=SUMIF(COL1:COL1,"dave",COL2:COL2)
Note that doing it this way will require you to enter each name individually when counting. Watch out for circular reference.
Use Pivot tables. It's exactly made for analysis as you describe. Pivot tables is a builtin feature in Excel and a quite powerful analysis tool.
Start with selecting your data to be analyzed and then make a pivot table out of that data.

extracting multiple text in different cells into one cell

I need assistance in seeing if there’s a formula to the below excel dilemma:
(Note - dash lines are used as separators indicating different column)
Currently I have a spread sheet with the below data: 2 columns (A--B)
Abby -- apple
Abby -- orange
Abby -- lime
Bob -- orange
Bob -- apple
Carol-- lime
Carol-- orange
David-- apple
Is there a formula that tells Excel to pick up identical text in Column A and consolidate the respective Column B items into one Cell in Column C? : please find below the end result that I’m after:
Abby -- apple ---- apple orange lime
Abby -- orange
Abby -- lime
Bob -- orange ---- orange apple
Bob -- apple
Carol-- lime ---- lime orange
Carol-- orange
David-- apple ---- apple
Thank you in advance.
Regards,
Kit
You may be able to modify the answer to this question to fit your needs. It's more complex than what you need since you are only matching on a single column instead of two or more, but the underlying concept is actually the same.

Resources