ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF AND OR Worksheet Functions (https://www.excelbanter.com/excel-discussion-misc-queries/87007-if-worksheet-functions.html)

ExcelBob

IF AND OR Worksheet Functions
 

Have the following forumla;

=IF(AND(A2="C/FWD",A3=1),A3,0)

but also want to return the value in A3 if A3 = 2, 3, 4, 5 etc....

Any ideas?

Thanks


--
ExcelBob
------------------------------------------------------------------------
ExcelBob's Profile: http://www.excelforum.com/member.php...o&userid=34152
View this thread: http://www.excelforum.com/showthread...hreadid=539203


macropod

IF AND OR Worksheet Functions
 
Hi ExcelBob,

Your requirements aren't clear.

If they've all got to return the same result, how about:
=IF(AND(A2="C/FWD",A30),A3,0)
or, if A3 is has to be an integer:
=IF(AND(A2="C/FWD",A3=INT(A3)),A3,0)

Cheers

"ExcelBob" wrote in
message ...

Have the following forumla;

=IF(AND(A2="C/FWD",A3=1),A3,0)

but also want to return the value in A3 if A3 = 2, 3, 4, 5 etc....

Any ideas?

Thanks


--
ExcelBob
------------------------------------------------------------------------
ExcelBob's Profile:

http://www.excelforum.com/member.php...o&userid=34152
View this thread: http://www.excelforum.com/showthread...hreadid=539203




ExcelBob

IF AND OR Worksheet Functions
 

Macropod!! - quite easy when you think about it.

Many Thanks!!!!


--
ExcelBob
------------------------------------------------------------------------
ExcelBob's Profile: http://www.excelforum.com/member.php...o&userid=34152
View this thread: http://www.excelforum.com/showthread...hreadid=539203



All times are GMT +1. The time now is 12:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com