Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Juco
 
Posts: n/a
Default format cell formula

I am trying to get this to work...
IF C8 = 1 or 2 or 3 or 4 then print 200 in cell M7
IF C8 = 5 or 6 then print 250 in cell M7

I have tried various ways (hopeless at formulas) but can`t get it to work
for me.
help appreciated
thanks


  #2   Report Post  
IanRoy
 
Posts: n/a
Default

Hi, Juco;
I didn't see anything in your actual question to do with formatting, but
here is one answer to the question: use the IF function with the OR function
for its first argument, 200 for its second, and another IF function for its
third. Use another OR function for the first argument in the second IF
function, 250 for the second, and "" for the third ("" returns blank). So:
=IF(OR(C8=1,C8=2,C8=3,C8=4),200,IF(OR(C8=5,C8=6),2 50,""))
Regards,
Ian.


"Juco" wrote:

I am trying to get this to work...
IF C8 = 1 or 2 or 3 or 4 then print 200 in cell M7
IF C8 = 5 or 6 then print 250 in cell M7

  #3   Report Post  
Ragdyer
 
Posts: n/a
Default

Another way:
Enter in M7:

=(OR(C8={1,2,3,4})*200+(OR(C8={5,6}))*250)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Juco" wrote in message
k...
I am trying to get this to work...
IF C8 = 1 or 2 or 3 or 4 then print 200 in cell M7
IF C8 = 5 or 6 then print 250 in cell M7

I have tried various ways (hopeless at formulas) but can`t get it to work
for me.
help appreciated
thanks



  #4   Report Post  
Juco
 
Posts: n/a
Default

Thanks for the help,
it works a treat.

thank you both
Juco


"Ragdyer" wrote in message
...
Another way:
Enter in M7:

=(OR(C8={1,2,3,4})*200+(OR(C8={5,6}))*250)
--
HTH,

RD

--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit !
--------------------------------------------------------------------------

-

"Juco" wrote in message
k...
I am trying to get this to work...
IF C8 = 1 or 2 or 3 or 4 then print 200 in cell M7
IF C8 = 5 or 6 then print 250 in cell M7

I have tried various ways (hopeless at formulas) but can`t get it to

work
for me.
help appreciated
thanks





  #5   Report Post  
Ragdyer
 
Posts: n/a
Default

Appreciate the feed-back.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Juco" wrote in message
k...
Thanks for the help,
it works a treat.

thank you both
Juco


"Ragdyer" wrote in message
...
Another way:
Enter in M7:

=(OR(C8={1,2,3,4})*200+(OR(C8={5,6}))*250)
--
HTH,

RD


--------------------------------------------------------------------------
-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------
-

"Juco" wrote in message
k...
I am trying to get this to work...
IF C8 = 1 or 2 or 3 or 4 then print 200 in cell M7
IF C8 = 5 or 6 then print 250 in cell M7

I have tried various ways (hopeless at formulas) but can`t get it to

work
for me.
help appreciated
thanks






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
How do I copy a cell (content AND format) from one worksheet to a. Excel Format Copy Excel Worksheet Functions 1 February 9th 05 10:34 PM
Display answer only in another cell of one containing a formula Mally Excel Discussion (Misc queries) 5 January 21st 05 01:07 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
using content of a cell in a formula in another cell mpierre Excel Worksheet Functions 3 December 28th 04 03:43 PM
I there an easy way to find out if any formula reference a cell? Marc New Users to Excel 1 December 6th 04 10:41 PM


All times are GMT +1. The time now is 01:30 PM.

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"