Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default command 'IF'


HELLO OF EVERYBODY
I would like ask for this :
can i make formula about compare cell for value,and if value= 0 to 5
make A1+B1 ,and if value= 51-100 make A1+C1

Thanks

--
ceconi
-----------------------------------------------------------------------
ceconik's Profile: http://www.excelforum.com/member.php...fo&userid=2806
View this thread: http://www.excelforum.com/showthread.php?threadid=53454

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default command 'IF'

Try
=IF(A4<=50,A1+B1,A1+C1)

Change A4 to the cell you want to test.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"ceconik"
wrote in message
...

HELLO OF EVERYBODY.
I would like ask for this :
can i make formula about compare cell for value,and if value= 0
to 50
make A1+B1 ,and if value= 51-100 make A1+C1

Thanks.


--
ceconik
------------------------------------------------------------------------
ceconik's Profile:
http://www.excelforum.com/member.php...o&userid=28066
View this thread:
http://www.excelforum.com/showthread...hreadid=534542



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default command 'IF'

What if target value (A4) is less that minimum value (0)?

"Chip Pearson" wrote:

Try
=IF(A4<=50,A1+B1,A1+C1)

Change A4 to the cell you want to test.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"ceconik"
wrote in message
...

HELLO OF EVERYBODY.
I would like ask for this :
can i make formula about compare cell for value,and if value= 0
to 50
make A1+B1 ,and if value= 51-100 make A1+C1

Thanks.


--
ceconik
------------------------------------------------------------------------
ceconik's Profile:
http://www.excelforum.com/member.php...o&userid=28066
View this thread:
http://www.excelforum.com/showthread...hreadid=534542




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default command 'IF'


------------------------------------------------------------------------
A poll associated with this post was created, to vote and see the
results, please visit http://www.excelforum.com/showthread...hreadid=534542
------------------------------------------------------------------------
Question: command &quot;IF&quot;

- compare cell
- if A1 =0-50
------------------------------------------------------------------------

ceconik

You have not listed what cell you are testing the value for. I have
used A7 and you have not listed what to do if value greater than 100. I
am leaving result blank if over 100


=IF(AND(A7=0,A7<=50),A1+B1,IF(A7<=100,A1+C1,""))


--
mudraker
------------------------------------------------------------------------
mudraker's Profile: http://www.excelforum.com/member.php...fo&userid=2473
View this thread: http://www.excelforum.com/showthread...hreadid=534542

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default command 'IF'


-----------------------------------------------------------------------
A poll associated with this post was created, to vote and see th
results, please visit http://www.excelforum.com/showthread.php?threadid=53454
-----------------------------------------------------------------------
Question: command &quot;IF&quot

- compare cel
- if A1 =0-5
-----------------------------------------------------------------------

mudraker Wrote:
ceconik

You have not listed what cell you are testing the value for. I hav
used A7 and you have not listed what to do if value greater than 100.
am leaving result blank if over 100


=IF(AND(A7=0,A7<=50),A1+B1,IF(A7<=100,A1+C1,""))


But this formula not work ,example for my problem
I have in A1=14 ,if A1=0-50 formula is A1*1.2
if A1=50-100 formula is A1*1.

--
ceconi
-----------------------------------------------------------------------
ceconik's Profile: http://www.excelforum.com/member.php...fo&userid=2806
View this thread: http://www.excelforum.com/showthread.php?threadid=53454



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default command 'IF'


------------------------------------------------------------------------
A poll associated with this post was created, to vote and see the
results, please visit http://www.excelforum.com/showthread...hreadid=534542
------------------------------------------------------------------------
Question: command &quot;IF&quot;

- compare cell
- if A1 =0-50
------------------------------------------------------------------------

Just modify Mudraker's formula?

=IF(AND(A1=0,A1<=50),A1*1.2,IF(AND(A150,A1<=100) ,A1*1.5,"Outside
Range"))

ceconik Wrote:
But this formula not work ,example for my problem
I have in A1=14 ,if A1=0-50 formula is A1*1.2
if A1=50-100 formula is A1*1.5



--
Ikaabod
------------------------------------------------------------------------
Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371
View this thread: http://www.excelforum.com/showthread...hreadid=534542

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default command 'IF'

Try:

=IF(2<ABS(SIGN(0-A1)+SIGN(50-A1)),A1+B1,IF(2<ABS(SIGN(51-A1)+SIGN(100-A1)),A1+C1,0))

Checks value within first range 0-50, if outside, checks within second
range; if outside both ranges, defaults answer to 0.

For maintenance, it would be better to put the range values at a known
location and to use that in the formula.

"ceconik" wrote:


HELLO OF EVERYBODY.
I would like ask for this :
can i make formula about compare cell for value,and if value= 0 to 50
make A1+B1 ,and if value= 51-100 make A1+C1

Thanks.


--
ceconik
------------------------------------------------------------------------
ceconik's Profile: http://www.excelforum.com/member.php...o&userid=28066
View this thread: http://www.excelforum.com/showthread...hreadid=534542


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
One command in one cell initiating another command in another cel. Chas52 Excel Worksheet Functions 3 November 7th 09 06:57 PM
command code ( GOTO command) in formula calan New Users to Excel 1 June 11th 09 09:44 AM
command button add another command Wanna Learn Excel Discussion (Misc queries) 5 December 7th 08 11:42 PM
Pivot Table Error Message - "Command Text not set for command obje Jeff Divian Excel Discussion (Misc queries) 0 November 7th 07 10:26 PM
I want to combine a "match" command with a copy and paste command. alomega Excel Programming 1 February 9th 05 05:52 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"