#1   Report Post  
Asta
 
Posts: n/a
Default Wrong syntax

I have created this: =IF(AND(C4300,C4<400),(C4-43)*0.36,"")
but i'd like to add more in the greater,Smaller than category and on each
add different subtractions and multiplication. How would i do such a thing?
  #2   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

The straightforward solution is:
=IF(condition1,response1,IF(condition2,response2,I F(...,...,...)))
You can have up to 7 nested IF's in such a way, i.e. 8 different responses.
Conditions are checked in order from outermost to innermost.
Usually there are ways to compose formulas for greater number of different
conditions too, but they heavily depend on real situation - no general
solutions exist.


Arvi Laanemets


"Asta" wrote in message
...
I have created this: =IF(AND(C4300,C4<400),(C4-43)*0.36,"")
but i'd like to add more in the greater,Smaller than category and on each
add different subtractions and multiplication. How would i do such a

thing?


  #3   Report Post  
Ken Wright
 
Posts: n/a
Default

Arvi has given you one solution, but if you post your conditions and there
is a logical pattern to them then someone will often come up with something
a lot smaller and far more scalable.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"Asta" wrote in message
...
I have created this: =IF(AND(C4300,C4<400),(C4-43)*0.36,"")
but i'd like to add more in the greater,Smaller than category and on each
add different subtractions and multiplication. How would i do such a

thing?


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
wrong syntax Asta Excel Discussion (Misc queries) 1 February 12th 05 09:39 AM
I get wrong dates when i paste from a different sheet into a new s mmollat Excel Discussion (Misc queries) 2 January 6th 05 07:35 PM
Vlookup Syntax Error YV New Users to Excel 9 December 23rd 04 05:28 PM
when writing an IF statement what is the syntax for "Not Equal to. NEEDTOKNOW Excel Discussion (Misc queries) 1 December 10th 04 04:45 PM
Previous Post - Correct Syntax Query Clarence Crow Excel Worksheet Functions 0 December 7th 04 05:35 AM


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