Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Copying a cell value to another sheet by using If statement

Hello everyone,

Am having the following example.

A1=john or james or raja
B1= salary

If A1="john" then B1 should be copied to B1 of sheet 2
If A1="james" then B1 should be copied to C1 of sheet 2

How to achieve this?
Please help

Thanks,
Naga
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Copying a cell value to another sheet by using If statement

Hi Naga,

Am Tue, 25 Dec 2012 02:15:29 -0800 (PST) schrieb naga rajan:

A1=john or james or raja
B1= salary

If A1="john" then B1 should be copied to B1 of sheet 2
If A1="james" then B1 should be copied to C1 of sheet 2


in B1 of sheet2:
=IF(Sheet1!A1="john",Sheet1!A2,"")
in C1 of sheet2:
=IF(Sheet1!A1="james",Sheet1!A2,"")


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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
How do I copying data from a cell on sheet to a diff cell/sheet Bowldiva120 Excel Worksheet Functions 1 March 21st 10 11:25 PM
copying cell comment from one sheet to another John Keith Excel Programming 2 January 20th 10 06:23 AM
Copying values from one sheet to the same cell in another sheet Ayo Excel Discussion (Misc queries) 2 September 19th 08 06:21 PM
How to use cell fron different sheet in IF statement Cyberbiker Excel Discussion (Misc queries) 5 November 14th 07 02:15 PM
If Statement and copying all of cell contents. andrewm Excel Worksheet Functions 0 June 29th 05 04:37 AM


All times are GMT +1. The time now is 05:32 AM.

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"