LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,514
Default attempting complicated IF comparison with end goal easy for future users

ALRFman formulated on Wednesday :
Hello,

I have 2 worksheets with water quality data (Nutrients and Metals), one
worksheet with acceptable values for the different parameters measured,
and one worksheet where I am attempting to look at these different
parameters to say if they are acceptable or not.

There are 2 different labs and various dates along with the various
parameters I am looking at.

This is a formula I have come up with, and it works for the first couple
columns then stops.

=IF((Nutrients!$D$4:$D$24=$D4)*(Nutrients!$E$2:$AL $2="ET")*(Nutrients!$E$3:$AL$3=F$3),IF('acceptabl e
limits'!$D$3Nutrients!F$4,"GOOD","BAD")," ")

What I am trying to say is =IF((parameter in nuterients worksheet =
parameter here) and (lab on nutrients worksheet = lab "ET") and (date on
nutrients worksheet = date here), then IF(parameter value on acceptable
limits worksheet is greater than value on nutrients, then its good,
otherwise bad) and its blank if it didn't work)


Actually, the above formula returns a space character for its final
'false' action, and so the cell will not be 'blank'. Even if it returns
an empty string (""), it still won't be 'blank'!

The idea is that there is data coming in every month, so I am trying to
make it easy for me (and future people) to see when something is wrong,
with it easy to add the new incoming data.

Thank you for any advice!


You have a 2nd IF attached to the 'true' part of the 1st IF. This will
only execute if all the factors in the 1st IF calculate to 'true'. I'm
thinking that your intent is better served using AND() instead of the
multiplication operator.


=IF(AND(Nutrients!$D$4:$D$24=$D4,Nutients!$E$2:$AL $2="ET",Nutrients!$E$3:$AL$3=F$3,'acceptable
limits'!$D$3Nutrients!F$4),"GOOD","BAD")

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


 
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
Complicated comparison and highlighting question Aimee Excel Worksheet Functions 0 July 3rd 08 01:15 AM
Spreadsheet setup for comparison review......is this easy? Mary MG[_2_] Excel Discussion (Misc queries) 1 March 24th 08 05:11 PM
Any ideas for making this graph type easy for other users? Del Cotter Charts and Charting in Excel 5 December 5th 07 12:47 PM
Relatively easy data comparison Q? Dan Excel Programming 2 August 10th 07 01:16 AM
Complex comparison of Columns of Data: Extracting unique records after comparison on 4 levels ap Excel Programming 2 January 23rd 07 10:12 AM


All times are GMT +1. The time now is 09:23 AM.

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"