Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 2 questions, one difficult.

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default 2 questions, one difficult.

=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" wrote in message
ups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default 2 questions, one difficult.

In new column drag down this formula:

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

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

Mike F
"zalek" wrote in message
ups.com...
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
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
Answers to questions posing more questions in a workbook sbelle1 Excel Worksheet Functions 2 August 8th 09 01:02 AM
View Questions and Answer to questions I created Roibn Taylor Excel Discussion (Misc queries) 4 July 24th 08 12:05 AM
2 questions, 1 easy about "" in VB, 1 very difficult filo666 Excel Programming 4 November 17th 05 07:26 PM
Too difficult for me, please help. Menno Excel Worksheet Functions 3 October 7th 05 02:01 PM
Is this difficult??? mingolo Excel Programming 1 September 15th 05 07:03 PM


All times are GMT +1. The time now is 10:43 AM.

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

About Us

"It's about Microsoft Excel"