Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dim dim is offline
external usenet poster
 
Posts: 123
Default Can I have a statement like: If - Then - Otherwise ?

I want to say:

If cell A1 value 0, then copy that value to cell C1, otherwise copy cell
B1 value to cell C1

Can someone make a suggestion please?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Can I have a statement like: If - Then - Otherwise ?

One try,

In C1:
=IF(A10,A1,IF(B10,B1,""))

Above presumes that you want the same check (0) to apply to B1 as well
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"dim" wrote:
I want to say:

If cell A1 value 0, then copy that value to cell C1, otherwise copy cell
B1 value to cell C1

Can someone make a suggestion please?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default Can I have a statement like: If - Then - Otherwise ?

Hi Dim,

You can do this by using the below formula:

=IF(A10,A1,B1) == Plese give this formula in C1

Regards,
Soundar.

"dim" wrote:

I want to say:

If cell A1 value 0, then copy that value to cell C1, otherwise copy cell
B1 value to cell C1

Can someone make a suggestion please?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dim dim is offline
external usenet poster
 
Posts: 123
Default Can I have a statement like: If - Then - Otherwise ?

Thankyou very much. Both those methods worked. :-)
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
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
If statement Mary Excel Worksheet Functions 2 July 12th 06 04:58 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 11:20 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"