I need Excel Help badly

robisc

Platinum Member
Oct 13, 1999
2,664
0
76
OK I seriously need Excel help, this will make my life easier, I know what I want to do but not how to do it, and it should be something that is possible. There is a sample of my spreadsheet below with only 3 rows and 6 columns, columns A, B and C are a range in a specific sort order that I don't want to change, columns D, E and F are basically the same data with more or less info attached that was exported from a SQL database and I need to make columns D, E and F match coumn A, can this be done?? If anyone's still with me then here's the tricky part, keep in mind that there may be more or less data in column A that is not in column D which means that if I build a custom sort order and sort D using a custom sort order of column A, the sort does work but the rows for D don't necessarily match column A and I want them to match so if there were a value for A that wasn't in column D list then I want a blank line to be put there. If I was as clear as mud and someone has a solution I would really appreciate it.



RA4062256 BARAGONA_L 5424-151 RA3343435 268443 SILICONE
RA4062287 BARAGONA_L 5424-151 RA3343436 268444 SILICONE
RA4062254 BARAGONA_L 5424-151 RA3343441 268449 SILICONE
 

WW

Golden Member
Jun 21, 2001
1,514
0
0
so columns A and D will be the same? so in your example, somewhere in D, RA4062256 will show up with data in E and F that you want to tie together with Column A (and B and C)?

why not fix the query from the SQL database to use that relation? to output the matched data in one line.

if that is impossible, the VLOOKUP function would do what you want. Use column D as your column to match with A, then have a vlookup that outputs the value in E and F.

take a look at the help file, post here if you need some assistance.

or if that isn't what you want, please clarify.

WW
 

eklass

Golden Member
Mar 19, 2001
1,218
0
0
eek, i'm excel-ified and sql-ified, but i'm confus-ified mostly by your post
 

KLin

Lifer
Feb 29, 2000
29,557
165
106
Originally posted by: robisc
OK I seriously need Excel help, this will make my life easier, I know what I want to do but not how to do it, and it should be something that is possible. There is a sample of my spreadsheet below with only 3 rows and 6 columns, columns A, B and C are a range in a specific sort order that I don't want to change, columns D, E and F are basically the same data with more or less info attached that was exported from a SQL database and I need to make columns D, E and F match coumn A, can this be done?? If anyone's still with me then here's the tricky part, keep in mind that there may be more or less data in column A that is not in column D which means that if I build a custom sort order and sort D using a custom sort order of column A, the sort does work but the rows for D don't necessarily match column A and I want them to match so if there were a value for A that wasn't in column D list then I want a blank line to be put there. If I was as clear as mud and someone has a solution I would really appreciate it.



RA4062256 BARAGONA_L 5424-151 RA3343435 268443 SILICONE
RA4062287 BARAGONA_L 5424-151 RA3343436 268444 SILICONE
RA4062254 BARAGONA_L 5424-151 RA3343441 268449 SILICONE

can you post the whole spreadsheet?
 

robisc

Platinum Member
Oct 13, 1999
2,664
0
76
OK let me try and clarify, I have the first 3 columns with say roughly 5000 rows in it

I then have 3 additional columns with other data, column D will have some, not all of the same data as column A.

I need to match and line up columns D, E and F with the data that mathes in D and in column A, the data on the right and their respective data with the names and data on the left.

So in other words let's say the data on the right side (column D thru E) has only 1000 of the 5000 names from column A after they are matched and sorted their will be some blank lines between the rows as they line up with the names and data on the left.

Let me try and give an example:

So the list on the left (A) here contains all the names while the list on the right (D) has only 1000 of those names. I need to sort the list on the right to line up with the names on the left.

Another example:

A B C D E F
RA4062256 BARAGONA_L 5424-151 RA4062254 268443 SILICONE
RA4062287 BARAGONA_L 5424-151 RA3757693 268444 SILICONE
RA4062254 BARAGONA_L 5424-151 RA4062256 268449 SILICONE
RA3757693 BARAGONE_L 5424-151


So column A must stay in this order and the rows for B and C must match A, now lets's say this was my complete spreadsheet and if I simply did a sort by using column A as the sort order for D, E and F my output rows wouldn't match going across, it would look like this:

A B C D E F
RA4062256 BARAGONA_L 5424-151 RA4062256 268443 SILICONE
RA4062287 BARAGONA_L 5424-151 RA4062254 268443 SILICONE
RA4062254 BARAGONA_L 5424-151 RA3757693 268444 SILICONE
RA3757693 BARAGONE_L 5424-151

Output needs to look like this:

A B C D E F
RA4062256 BARAGONA_L 5424-151 RA4062256 268443 SILICONE
RA4062287 BARAGONA_L 5424-151
RA4062254 BARAGONA_L 5424-151 RA4062254 268443 SILICONE
RA3757693 BARAGONE_L 5424-151 RA3757693 268444 SILICONE


Hope this helps and thanks for replies : )
 

bigoman

Member
Jul 12, 2004
37
0
0
I agree with WW in that vlookup is the way to go.


Take columns D-F and cut and paste them into a separate worksheet (we will call this "data") in columns A B C.

Then put this in the first row in columns D E F in your original worksheet


Column D =vlookup(A1,Data!A:C,1,0)
Column E =vlookup(A1,Data!A:C,2,0)
Column F =vlookup(A1,Data!A:C,3,0)

Then you can just clickdrag the 3 cells all the way down. If something was in A B C on the original worksheet that wasnt in D E F, then it will show up as #N/A. You can use a simple find/replace to make those blanks.

If you are confused, or want me to do it for you, I would be happy to.

Just PM me, and I'll give you my email. Or post the Spreadsheet.
 

robisc

Platinum Member
Oct 13, 1999
2,664
0
76
bigoman and WW, you are the men, Thanks. If you were here right now I would kiss ya, well no maybe not, seriously though THANKS a million. : )
Ty
 

bigoman

Member
Jul 12, 2004
37
0
0
no problem

I'm at work right now where I'm using.. excel.. so yeah, its not a huge stretch for me to go help you =)

Better than doing real work, at least.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |