LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 829
Default how to write two criteria in if statement?

"Cindy Wang" wrote:
I have one more question:
=IF(ISNUMBER(MATCH(M27,'[Sales Workpaper
2012.xls]May-12'!$A$8:$A$24,0))=FALSE,

[....]
Why you have to use a match funtion here for?
Thought match is to look for position. I am not
looking for any position here, am I?


You originally wrote:

=IF((VLOOKUP(M27,'[Sales Workpaper 2012.xls]May-12'!$A$8:$D$24,4,FALSE))=0,

I misinterpreted your intent. Use your original conditional expression.

One minor suggestion: eliminate the unnecessary parentheses. Just write:

=IF(VLOOKUP(M27,'[Sales Workpaper 2012.xls]May-12'!$A$8:$D$24,4,FALSE)=0,

More readable; ergo, less error-prone.

 
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
better way to write a count if statement? luscioussarita Excel Worksheet Functions 3 March 27th 08 08:32 PM
How do I write a compound if statement? Diane Excel Worksheet Functions 5 May 17th 07 08:52 PM
Hello I am trying to write an If/Then statement. Here is the data. jdamron Excel Programming 2 June 9th 06 12:41 AM
how do I write the date in an if statement Susan Hayes Excel Worksheet Functions 1 August 23rd 05 09:29 PM
How to write a statement about if then Baffle, Atlanta, Ga Excel Programming 2 May 19th 05 07:20 AM


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