Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Why does this formula not work?

....and how should it be written?

=IF($P30="","Y",IF(AND($W30<"",VLOOKUP($W30,SAGE3 ,1,FALSE)=
$W30),"Y",""))

If the value of cell W30 is also present in the table SAGE3 there is
no problem. The error occurs if it is not.
I have tried changing FALSE to TRUE but this does not work either.
The table SAGE£ has been sorted by the first field.

Can anyone help?

Dave Moore

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Why does this formula not work?

Try this revision:
=IF($P30="","Y",IF(AND($W30<"",ISNUMBER(MATCH($W3 0,SAGE3,0))),"Y",""))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"DaveMoore" wrote:
....and how should it be written?

=IF($P30="","Y",IF(AND($W30<"",VLOOKUP($W30,SAGE3 ,1,FALSE)=
$W30),"Y",""))

If the value of cell W30 is also present in the table SAGE3 there is
no problem. The error occurs if it is not.
I have tried changing FALSE to TRUE but this does not work either.
The table SAGEĀ£ has been sorted by the first field.

Can anyone help?

Dave Moore


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Why does this formula not work?

Oh Max!
What can I say?
Brilliant!
Thank you so much.
Dave Moore

On 27 Feb, 08:27, Max wrote:
Try this revision:
=IF($P30="","Y",IF(AND($W30<"",ISNUMBER(MATCH($W3 0,SAGE3,0))),"Y",""))
--
Max
Singaporehttp://savefile.com/projects/236895
xdemechanik
---



"DaveMoore" wrote:
....and how should it be written?


=IF($P30="","Y",IF(AND($W30<"",VLOOKUP($W30,SAGE3 ,1,FALSE)=
$W30),"Y",""))


If the value of cell W30 is also present in the table SAGE3 there is
no problem. The error occurs if it is not.
I have tried changing FALSE to TRUE but this does not work either.
The table SAGE£ has been sorted by the first field.


Can anyone help?


Dave Moore- Hide quoted text -


- Show quoted text -



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Why does this formula not work?

Glad it helped, Dave !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
On Feb 27, 5:32 pm, "DaveMoore" wrote:
Oh Max!
What can I say?
Brilliant!
Thank you so much.
Dave Moore


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Why does this formula not work?

You had a prob earlier because of this part:

VLOOKUP($W30,SAGE3,1,FALSE)=$W30
which returns #N/A if W30 is blank or contained a value not found in the
lookup col

The #N/A is not resolvable by the AND
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
Why does this formula not work? dk_ Excel Discussion (Misc queries) 14 September 28th 06 09:18 PM
How does this formula work? [email protected] Excel Discussion (Misc queries) 4 May 9th 06 09:10 PM
FORMULA DOESN'T WORK Loyd Excel Discussion (Misc queries) 4 March 30th 06 06:17 PM
A search for $ in a formula use to work now it does not work JuneJuly Excel Discussion (Misc queries) 2 November 30th 05 10:13 PM
How do I get this formula to work? mystical_ways Excel Discussion (Misc queries) 0 August 23rd 05 07:16 PM


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