Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default if Formula 2 scenario

Friend, the case is like this :

A1 b1 Result (C1)

20 a 100
40 - 0
20 - 0
40 b 200

i want if b1 got any value, the the result depends on A1 - if 20 it will
result 100, otherwise results 200. if b1 got no value then automatically c1
will be 0 and ignoring any value in a1. pls help with formula that i should
use. thanks a lot
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default if Formula 2 scenario

=IF(B1="",0,IF(A1=20,100,200))

--
HTH

Bob Phillips

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

"ShamsulZ" wrote in message
...
Friend, the case is like this :

A1 b1 Result (C1)

20 a 100
40 - 0
20 - 0
40 b 200

i want if b1 got any value, the the result depends on A1 - if 20 it will
result 100, otherwise results 200. if b1 got no value then automatically

c1
will be 0 and ignoring any value in a1. pls help with formula that i

should
use. thanks a lot



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default if Formula 2 scenario

=IF(ISBLANK(B1),0,IF(A1=20,100,200))
but be careful! A dash (-) in B IS a value! If you want to mark the NO VALUE
case with dashes, then the formula is
=IF(B1="-",0,IF(A1=20,100,200))

Regards,
Stefi

€˛ShamsulZ€¯ ezt Ć*rta:

Friend, the case is like this :

A1 b1 Result (C1)

20 a 100
40 - 0
20 - 0
40 b 200

i want if b1 got any value, the the result depends on A1 - if 20 it will
result 100, otherwise results 200. if b1 got no value then automatically c1
will be 0 and ignoring any value in a1. pls help with formula that i should
use. thanks a lot

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
Excel formula for an "if" "then" scenario linking 3 worksheets John Excel Discussion (Misc queries) 2 February 23rd 10 06:56 PM
Multiple Scenario Condition Formula ssmbob Excel Worksheet Functions 2 January 30th 08 06:30 PM
Scenario in formula hmm Excel Worksheet Functions 2 June 11th 07 12:56 PM
need a formula for this scenario GinnyJ Excel Worksheet Functions 10 October 5th 06 10:22 PM
Is it possible to have a formula for the following scenario please Essjay Excel Worksheet Functions 0 January 12th 06 09:38 PM


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