Your adapted expression to trap the new criteria is fine, except that you
need to drop the ascending sort tie-breaker bit: Sheet1!A1+ROW()/10^10
since the data in Sheet1's col A is no longer a number, eg: D/M 01.12.09A
(this was the part causing problems, not the LEFT parts)
In Sheet2
In A1, replace your:
=IF(Sheet1!A1="","",IF(OR(LEFT(Sheet1!A1,3)="D/F",LEFT(Sheet1!A1,3)="D/M"),Sheet1!A1+ROW()/10^10,""))
with this:
=IF(Sheet1!A1="","",IF(OR(LEFT(Sheet1!A1,3)="D/F",LEFT(Sheet1!A1,3)="D/M"),ROW(),""))
Then use in B1:
=IF(ROW()>COUNT(A:A),"",INDEX(Sheet1!A:A,SMALL(A:A,ROW())))
and copy A1:B1 down
(Above is essentially the method shown in my very 1st response)
Start new threads for any new queries that you might have.
Better exposure for your queries to all responders.
P/s: Think the free filehost will purge the sample file after a certain
period.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
Chad F said:
Max,
It's me again. Sorry to bother you, but I ran into something else.
On the "AND" formula below, I have a worksheet that I am trying to pull in
all of the discontinued items. The bad thing that we do (because we are
using an inferior system) is when an item is discontinued, the item number
(or I.D.) is changed, for instance, from 803100 to D/M 01.12.09A or D/F
01.12.09B. Don't ask me why, but we do this.
Anyway, the "D/M" is when the manufacturer discontinues the item, and the
"D/F" is when we do. That way, the customer can look at this list and see
if
they need to disc. the item themselves or just buy it somewhere else, if
it
is still available.
So, I tried using the "AND" formula, but I believe that it is viewing D/M
as
a mathematical equation. How can I search for these prefixes correctly?
My
shared file is still out there if you need to look at it (the old version
that you have seen).
By the way, how do I remove the shared file once you are done using it?
The formula that I put in was:
=IF(Sheet1!A1="","",IF(OR(LEFT(Sheet1!A1,3)="D/F",LEFT(Sheet1!A1,3)="D/M"),Sheet1!A1+ROW()/10^10,""))