Donate SIGN UP

Excel rows

Avatar Image
lacmag3 | 12:47 Fri 13th May 2011 | Computers
19 Answers
To explain the problem I'm having in Excel, imagine for example that I have a spreadsheet listing 1000 people and the cars they have owned (one row per person/make of car). Some will have owned more cars than others but I'm only intersted in those that ever owned Fords. I want to examine what other cars those Ford owners bought.
How can I easily identify and discard ALL rows for people who never owned a Ford?
Gravatar

Answers

1 to 19 of 19rss feed

Best Answer

No best answer has yet been selected by lacmag3. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Try using filters
Sort the spreadsheet by make of car and look along the rows. Assuming that informatin is available.
Is the make of car in it's own column? Then highlight all columns, go to data on the toolbar, then sort by column.
Question Author
Sorting and filtering don't work (I think) since each will gather the "ford" rows together when in fact I want to see what other cars (rows) the ford owners had. I want to keep together all the rows of each person who owned a ford and dump the rows for those who never owned a ford.

p.s. The example I'm giving is a simplified one, for expalantion purposes. In reality there are many thousands of rows so eyeballing isn't really on.
You keep saying rows but it's columns that you need to sort - assuming that you have name in first column and then a car in each subsequent column??
Surely sorting by column would give you a section of just Ford owners, with all other information relating to them still in place in the rows?
What version of Excel are you using ?
No it wouldn't be any good sorting, where's Chuck when you need a macro?
Control F, search for "ford", find all. Check them out by eye, one by one.
Question Author
Only one name & car appears on each row e.g.
John, Mercedes
John, Ford
Mike, Renault
Mike, Peugeot
Ann, Peugeot
Ann, Ford
By bringing all the ford rows to the top, I will be left will lots of rows at the bottom (John 1, Mike 2 and Ann 1) and I can't tell which of these bottom rows I should keep or delete.
Would you also need to know if the Ford was the first car they bought rather than say the third?
Question Author
In answer to Craft1948.. having the sequence of ownership isn't vital but would be an added bonus (since a date is recorded for each)
Sorry..... Macros are not my thing, I'm not great with excel. But my first thought is you're using the wrong tool for the job, this sounds more suited to a database than a spreadsheet.
Excel can deal with it perfectly. How it needs to be done depends on the version of Excel.
If you don't like filters, try a pivot table.
Find the Ford owners, color their space for easy recognition, delete t'others. Insert comment on remaining Ford peeps to record previous cars.
Too manually intensive Tambo.

Try a pivot table, double-click on Ford and it should open a new tab with the Ford owners only on it. Max 1 minute.
sort by ford, colour them red, re-sort by name
would be pretty tho samak :)

1 to 19 of 19rss feed

Do you know the answer?

Excel rows

Answer Question >>