Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Multiples of 4 in an IF statement


Hello all.

I have an IF statement in one of my cells.


Code:
--------------------
=IF(logical_test,value_if_true,value_if_false)
--------------------


In the logical_test portion, would like to have the cell evaluated for
multiples of 4.

Code:
--------------------
=IF(A1=(multiples of 4),value_if_true,value_if_false)
--------------------


Anyone know of a way to pull this off?


--
Barry Clark
------------------------------------------------------------------------
Barry Clark's Profile: http://www.excelforum.com/member.php...o&userid=35267
View this thread: http://www.excelforum.com/showthread...hreadid=573911

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default Multiples of 4 in an IF statement

use MOD()...


=IF(MOD(A1,4)=0,value_if_true,value_if_false)

--
Regards,
Dave


"Barry Clark" wrote:


Hello all.

I have an IF statement in one of my cells.


Code:
--------------------
=IF(logical_test,value_if_true,value_if_false)
--------------------


In the logical_test portion, would like to have the cell evaluated for
multiples of 4.

Code:
--------------------
=IF(A1=(multiples of 4),value_if_true,value_if_false)
--------------------


Anyone know of a way to pull this off?


--
Barry Clark
------------------------------------------------------------------------
Barry Clark's Profile: http://www.excelforum.com/member.php...o&userid=35267
View this thread: http://www.excelforum.com/showthread...hreadid=573911


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 299
Default Multiples of 4 in an IF statement

Do you mean like this?

=IF(MOD(A1,4)=0,"a","b")


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Barry Clark"
wrote in message
...

Hello all.

I have an IF statement in one of my cells.


Code:
--------------------
=IF(logical_test,value_if_true,value_if_false)
--------------------


In the logical_test portion, would like to have the cell evaluated for
multiples of 4.

Code:
--------------------
=IF(A1=(multiples of 4),value_if_true,value_if_false)
--------------------


Anyone know of a way to pull this off?


--
Barry Clark
------------------------------------------------------------------------
Barry Clark's Profile:
http://www.excelforum.com/member.php...o&userid=35267
View this thread: http://www.excelforum.com/showthread...hreadid=573911



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Multiples of 4 in an IF statement


Worked perfect! Thanks!


--
Barry Clark
------------------------------------------------------------------------
Barry Clark's Profile: http://www.excelforum.com/member.php...o&userid=35267
View this thread: http://www.excelforum.com/showthread...hreadid=573911

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
SQL concatenation statement CLamar Excel Discussion (Misc queries) 0 June 29th 06 01:58 PM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
IF Statement problem trixma New Users to Excel 3 September 27th 05 06:36 AM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


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