Computing.Net > Forums > Office Software > Excel Formula

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel Formula

Reply to Message Icon

Name: sappy
Date: April 28, 2005 at 08:30:45 Pacific
OS: Windows 2000
CPU/Ram: 128
Comment:

Hi,

Can someone tell me how to do a if loop in Excel to retrieve info for condition like,
if (a&b)=1, then show true....something like this but its using the and/or condition in the loop; I searched but I wasn't clear, can someone please help me.

thanks

Sappy




Sponsored Link
Ads by Google

Response Number 1
Name: Jennifer SUMN
Date: April 28, 2005 at 09:01:48 Pacific
Reply:

You need to be more specific. You can do nested ifs. Please provide an example of what you want to query and the results you want.


0

Response Number 2
Name: sappy
Date: April 28, 2005 at 10:32:45 Pacific
Reply:

hi jenifer,
Ok here is what I want, hopefully this is more clear......

Comparing numbers in cells and returning 'True' if all the arguments are true, or else return false if any of the arguments are not true.so for example..

if (X>Y and X<Z, True, False)

so I am asking the software to say if 'X' is greater then 'Y' and 'X' is less then 'Z' return 'True' else return 'False' in this case 'X,Y,Z' can be numbers in the cells of the worksheet. I am not sure how to incorporate this formula into Excel?

thanks much,

sappy


0

Response Number 3
Name: rhawk7938
Date: April 28, 2005 at 10:38:09 Pacific
Reply:

You might be looking for Do While(Until) conditions are met. Such as Do While a=1 and b=2.

Do [{While | Until} condition]
[statements]
[Exit Do]
[statements]

Loop

Look here for more info:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/office97/html/output/F1/D6/S5B1DB.asp


0

Response Number 4
Name: Michael J (by mjdamato)
Date: April 29, 2005 at 02:29:35 Pacific
Reply:

if (X>Y and X<Z, True, False)

Replacing A1 for X, B1 for Y, and C1 for Z the formula would be like this:

=if(A1>B1,if(A1<C1,"True","False"),"False")

Michael J


0

Response Number 5
Name: sappy
Date: April 29, 2005 at 09:26:32 Pacific
Reply:

Hi Michael,

Just a thought, can't excel recognize the use of 'If statements with 'and/or' conditions, do we always need to rewrite them. I think it would make life much easier that way.

thanks much for your help.

sapps

Sappy


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel Formula

Excel Formula Help www.computing.net/answers/office/excel-formula-help/2797.html

Problems with Excel Formulas www.computing.net/answers/office/problems-with-excel-formulas/5502.html

Excel formula...again... www.computing.net/answers/office/excel-formulaagain/6741.html