PC Review


Reply
Thread Tools Rate Thread

2 questions, one difficult.

 
 
zalek
Guest
Posts: n/a
 
      19th Jan 2007
When I open an Excel - by default I see 3 workseets. My question:
I have 3 separate excel files. How to create from 3 excel files one
file with 3 worksheets?

I have 3 excel woksheets - A1, A2, A3. Each of them have a column
called SSN. I want to add to a new column to A1 with the following
walues:
if SSN from A1 exist in A2 - the value will be "A2"
if SSN from A1 exist in A3 - the value will be "A3"
if SSN from A1 does not exist in A2 and A3 - the value will be "N"

Can you give me a hint how to do it?

Thanks,

Zalek

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      19th Jan 2007
=IF(A2!A1="SSN","A2",IF(A3!A1="SSN","A3","N"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"zalek" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> When I open an Excel - by default I see 3 workseets. My question:
> I have 3 separate excel files. How to create from 3 excel files one
> file with 3 worksheets?
>
> I have 3 excel woksheets - A1, A2, A3. Each of them have a column
> called SSN. I want to add to a new column to A1 with the following
> walues:
> if SSN from A1 exist in A2 - the value will be "A2"
> if SSN from A1 exist in A3 - the value will be "A3"
> if SSN from A1 does not exist in A2 and A3 - the value will be "N"
>
> Can you give me a hint how to do it?
>
> Thanks,
>
> Zalek
>



 
Reply With Quote
 
Mike Fogleman
Guest
Posts: n/a
 
      19th Jan 2007
In new column drag down this formula:

=IF(COUNTIF('A2'!A1:A50,A1),"A2",IF(COUNTIF('A3'!A1:A50,A1),"A3","N"))

see Ron's site about Copy/paste from workbooks:
http://www.rondebruin.nl/tips.htm

Mike F
"zalek" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> When I open an Excel - by default I see 3 workseets. My question:
> I have 3 separate excel files. How to create from 3 excel files one
> file with 3 worksheets?
>
> I have 3 excel woksheets - A1, A2, A3. Each of them have a column
> called SSN. I want to add to a new column to A1 with the following
> walues:
> if SSN from A1 exist in A2 - the value will be "A2"
> if SSN from A1 exist in A3 - the value will be "A3"
> if SSN from A1 does not exist in A2 and A3 - the value will be "N"
>
> Can you give me a hint how to do it?
>
> Thanks,
>
> Zalek
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Few difficult for me questions about Dispose() Piotrekk Microsoft C# .NET 13 11th Feb 2008 05:35 PM
Few questions about VBA in outlook -difficult. =?Utf-8?B?UmVuYWF0TGFuZHV5dA==?= Microsoft Outlook VBA Programming 3 28th May 2007 09:18 PM
A difficult one.. =?Utf-8?B?TWlrZSBEaWFtb25k?= Microsoft Access Database Table Design 2 16th May 2007 01:33 AM
2 questions, 1 easy about "" in VB, 1 very difficult =?Utf-8?B?ZmlsbzY2Ng==?= Microsoft Excel Programming 4 17th Nov 2005 07:26 PM
Why is this so difficult? larry123 Windows XP Internet Explorer 5 10th Oct 2003 10:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 PM.