Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VAN GOGH
 
Posts: n/a
Default =IF(AND) ASSISTANCE

Why doesn't this formula work?

=IF(AND('Detail by POG'!D1:D1000="Mainline Books - 12.5'",'Totals
Only'!B3='Detail by POG'!B1:B1000),"YES","NO")

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default =IF(AND) ASSISTANCE

Spurious apostrophe.

=IF(AND('Detail By POG'!D1:D1000="Mainline Books - 12.5",'Totals
Only'!B3='Detail By POG'!B1:B1000),"YES","NO")

But this onl;y tests the first cell, do you want any instance of that text
to register yes, if so

=IF(OR(ISNA(MATCH("Mainline Books - 12.5",'Detail By
POG'!D1:D100,0)),ISNA(MATCH('Totals Only'!B3,'Detail By
POG'!B1:B1000,0))),"NO","YES")

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"VAN GOGH" wrote in message
...
Why doesn't this formula work?

=IF(AND('Detail by POG'!D1:D1000="Mainline Books - 12.5'",'Totals
Only'!B3='Detail by POG'!B1:B1000),"YES","NO")

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default =IF(AND) ASSISTANCE

Hi,

try this

=IF(AND(SUMPRODUCT(--('Detail by POG'!D1:D1000="Mainline Books -
12.5'")),SUMPRODUCT(--('Detail by POG'!B1:B1000='Totals
Only'!B3))),"YES","NO")

HTH
Regards from Brazil - going to the 6th *
Marcelo

"VAN GOGH" escreveu:

Why doesn't this formula work?

=IF(AND('Detail by POG'!D1:D1000="Mainline Books - 12.5'",'Totals
Only'!B3='Detail by POG'!B1:B1000),"YES","NO")

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB
 
Posts: n/a
Default =IF(AND) ASSISTANCE

Or does he want to know if the two criteria appear in the same row?

=IF(SUMPRODUCT(--('Detail by POG'!D1:D1000="Mainline Books -
12.5'"), --('Detail by POG'!B1:B1000='Totals
Only'!B3)),"YES","NO")

To respond to the OP's question of why it does not work - not easy to answer
when you don't tell anyone what you are trying to do.

"Marcelo" wrote:

Hi,

try this

=IF(AND(SUMPRODUCT(--('Detail by POG'!D1:D1000="Mainline Books -
12.5'")),SUMPRODUCT(--('Detail by POG'!B1:B1000='Totals
Only'!B3))),"YES","NO")

HTH
Regards from Brazil - going to the 6th *
Marcelo

"VAN GOGH" escreveu:

Why doesn't this formula work?

=IF(AND('Detail by POG'!D1:D1000="Mainline Books - 12.5'",'Totals
Only'!B3='Detail by POG'!B1:B1000),"YES","NO")

Thanks.

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



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