Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Raj Raj is offline
external usenet poster
 
Posts: 130
Default Compare columns and display the value

Hi All

I have pulled data from 2 different reports here is the Data
Report 1 :
Ticket Priority
123 P1
124 P1
125 P3
126 P1

Report 2:
Ticket Time
123 3
128 4
127 3
124 5

Now i want build a 3 report where the Ticket has to compare and display in
the below format If the ticket is avialable in Report 1 and not in Report 2
then the Report 3 has to display only Ticket and Priority.

Ticket Priority Time

Is it possible to get the data in Excel please help me
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default Compare columns and display the value

On Mon, 29 Dec 2008 00:55:00 -0800, Raj
wrote:

Hi All

I have pulled data from 2 different reports here is the Data
Report 1 :
Ticket Priority
123 P1
124 P1
125 P3
126 P1

Report 2:
Ticket Time
123 3
128 4
127 3
124 5

Now i want build a 3 report where the Ticket has to compare and display in
the below format If the ticket is avialable in Report 1 and not in Report 2
then the Report 3 has to display only Ticket and Priority.

Ticket Priority Time

Is it possible to get the data in Excel please help me



If this is your expected output for your given example

Ticket Priority Time
123 P1 3
124 P1 5
125 P3
126 P1
127 3
128 4

you may try the following formulas.

Assuming that
- your ticket/prioirty are in columns A and B
- your priorities always start with a letter (not a digit)
- your ticket/time are in columns C and D
- row 1 is used for headers, data starts in row 2

In cell E1 put the header Ticket
In cell F1 put the header Priority
In cell G1 put the header Time

In cell E2 put the formula
=SMALL(A$2:C$10,1)

In cell E3 put the formula
=SMALL(A$2:C$10,1+SUMPRODUCT(--(TRANSPOSE(E$2:E2)=A$2:A$10))+SUMPRODUCT(--(TRANSPOSE(E$2:E2)=C$2:C$10)))
Note: This is an array formula that must be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER

Copy cell E3 down as far as needed

In cell F2 put the formula
=IF(ISERROR(VLOOKUP(E2,A$2:B$10,2,FALSE)),"",VLOOK UP(E2,A$2:B$10,2,FALSE))
In cell G2 put the formula
=IF(ISERROR(VLOOKUP(E2,C$2:D$10,2,FALSE)),"",VLOOK UP(E2,C$2:D$10,2,FALSE))

Copy cells F2:G2 down as far as needed.

Change $10 in all places to fit the size of your data in rows A to D.

Hope this helps / Lars-Åke




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare two columns and display value in 3 cloumn Raj Excel Discussion (Misc queries) 2 December 12th 08 04:32 PM
Compare several columns of data and display unique ones [email protected] Excel Discussion (Misc queries) 0 March 13th 07 04:12 PM
compare two columns and display a third ch90 Excel Discussion (Misc queries) 4 October 13th 05 12:56 PM
Compare and display multiple rows Greg Excel Worksheet Functions 1 June 9th 05 04:20 PM
Excel Compare values in columns & display missing values in a new cpetta Excel Discussion (Misc queries) 1 April 2nd 05 05:51 AM


All times are GMT +1. The time now is 11:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"