Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Digory
 
Posts: n/a
Default IF ...only it would work


Dear All,
Great forum - hope someone can help with this.

I have data in same workbook, different sheet arranged in cols with
assigned NAMES to ranges.

For example; range PROD is a list of product documentation:
product1101_dispatched
product1101_invoice
product1102_dispatched
product1102_invoice

Range OLD is a list of deleted products:
product1000
product1000
product1001
product1000

I am trying to build a matrix where cells will first interogate OLD and
if there is an entry return a D (for deleted). If no entry in OLD then
interogate PROD and count the number of entries using productNumber* to
count all the product documents associated with that product. Assumption
is that products will appear in only one range or not at all. I will
then conditional format matrix with traffic light red=0,
orange=D,Green0.

Am trying to use this (for prod1101):
{=IF(OLD="product1001","D",COUNTIF(PROD,"=product1 101*"))}

Where am I going wrong ?

D:-)


--
Digory
------------------------------------------------------------------------
Digory's Profile: http://www.excelforum.com/member.php...o&userid=16439
View this thread: http://www.excelforum.com/showthread...hreadid=473676

  #2   Report Post  
Max
 
Posts: n/a
Default

Try:

=IF(ISNUMBER(MATCH("product1001",OLD,0)),"D",
COUNTIF(PROD,"product1101*"))

Not sure whether there was a typo in the post as to: "product1101"
(Should the 2 product references be the same?)
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Digory" wrote in
message ...

Dear All,
Great forum - hope someone can help with this.

I have data in same workbook, different sheet arranged in cols with
assigned NAMES to ranges.

For example; range PROD is a list of product documentation:
product1101_dispatched
product1101_invoice
product1102_dispatched
product1102_invoice

Range OLD is a list of deleted products:
product1000
product1000
product1001
product1000

I am trying to build a matrix where cells will first interogate OLD and
if there is an entry return a D (for deleted). If no entry in OLD then
interogate PROD and count the number of entries using productNumber* to
count all the product documents associated with that product. Assumption
is that products will appear in only one range or not at all. I will
then conditional format matrix with traffic light red=0,
orange=D,Green0.

Am trying to use this (for prod1101):
{=IF(OLD="product1001","D",COUNTIF(PROD,"=product1 101*"))}

Where am I going wrong ?

D:-)


--
Digory
------------------------------------------------------------------------
Digory's Profile:

http://www.excelforum.com/member.php...o&userid=16439
View this thread: http://www.excelforum.com/showthread...hreadid=473676



  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this: (normally entered, not an array)

=IF(ISNUMBER(MATCH("product1001",old,0)),"D",COUNT IF(prod,"product1101*"))

Are you sure the criteria are correct? product1001, product1101

Also, you'd be better off using cells to hold the criteria:

A1 = product1001
B1 = product1101

Then:

=IF(ISNUMBER(MATCH(A1,old,0)),"D",COUNTIF(prod,B1& "*"))

Biff

"Digory" wrote in
message ...

Dear All,
Great forum - hope someone can help with this.

I have data in same workbook, different sheet arranged in cols with
assigned NAMES to ranges.

For example; range PROD is a list of product documentation:
product1101_dispatched
product1101_invoice
product1102_dispatched
product1102_invoice

Range OLD is a list of deleted products:
product1000
product1000
product1001
product1000

I am trying to build a matrix where cells will first interogate OLD and
if there is an entry return a D (for deleted). If no entry in OLD then
interogate PROD and count the number of entries using productNumber* to
count all the product documents associated with that product. Assumption
is that products will appear in only one range or not at all. I will
then conditional format matrix with traffic light red=0,
orange=D,Green0.

Am trying to use this (for prod1101):
{=IF(OLD="product1001","D",COUNTIF(PROD,"=product1 101*"))}

Where am I going wrong ?

D:-)


--
Digory
------------------------------------------------------------------------
Digory's Profile:
http://www.excelforum.com/member.php...o&userid=16439
View this thread: http://www.excelforum.com/showthread...hreadid=473676



  #4   Report Post  
Digory
 
Posts: n/a
Default


Guys,

Thanks - that's excellent (& oops there was a typo in question)

The tip to use cells to hold the criteria has saved me heaps of
effort.
I had tried this but failed and resorted to using a generic formula and
then find / replace to make specific for each cell.

Ta muchly
D:-)


--
Digory
------------------------------------------------------------------------
Digory's Profile: http://www.excelforum.com/member.php...o&userid=16439
View this thread: http://www.excelforum.com/showthread...hreadid=473676

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
Spin button in a work sheet - how do I make it work? [email protected] Excel Worksheet Functions 1 April 7th 05 08:43 PM
Erase & Draw Border functions no longer work bob m Excel Discussion (Misc queries) 2 February 25th 05 06:03 PM
How to get saved old saved work that was saved over? Maral Excel Discussion (Misc queries) 1 February 20th 05 08:59 PM
Service work order schoolgeek63 Charts and Charting in Excel 1 January 7th 05 08:07 PM
How do I ensure dates inputted are during the work week? Jim Johnson Excel Worksheet Functions 3 October 29th 04 08:25 AM


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