On the collections tab in Column L... I want it to look up the left 6 characters of Column D and if it finds those numbers (with or without a .#) in AR tab Column C, I want it to put a "N", if it doesn't find it, I want it to put a "Y".
On the collections tab in Column L... I want it to look up the left 6 characters of Column D and if it finds those numbers (with or without a .#) in AR tab Column C, I want it to put a "N", if it doesn't find it, I want it to put a "Y".
Last edited by kafarrell; 07-30-2014 at 10:25 AM.
Column K in the collections tab is "Net Amount Received" and contains figures.
Are you sure you want these figures overwritten with a Y/N ?
Try (untested)
=IF(ISNA(VLOOKUP(LEFT(D10,6),AR!C$6:C$1000,0)),"N","Y")
Regards
Special-K
Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.
Try
=IF(SUMPRODUCT(--(LEFT(AR!$C$6:$C$100,6)=LEFT(D10,6))),"N","Y")
Sorry... changed post to Column L
In Row 10 of Collections sheet
=SUM(COUNTIF(AR!C:C,INDEX(CHOOSE({1,2},--LEFT(D10),D10),,N(IF(1,{1,2})))))
Drag it down....
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
-- Converts True/False values into 1/0 values
True = 1, False = 0
(LEFT(AR!$C$6:$C$100,6)=LEFT(D10,6))
This is an expression (or question) withe a True or False answer.
It reads 1 row at a time, and asks Is the left 6 characters from column C equal to the left 6 characters of D10? True or False.
It creates an array of all the True/False results of that question for each cell in C6:C100
The -- converts those True/False into 1/0
Then the sumproduct SUMS those 1's and 0's.
If that sum is 0, it returns "Y"
If that sum is any number greater than 0, it returns "N"
you could probably just use INT()
=IF(SUMPRODUCT(--(INT(AR!$C$6:$C$100)=INT(D10))),"N","Y")
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
I considered that as well, but it will error if there are any text values in C6:C100...
It also assumes that all the numbers are 6 digits (not including the decimal value).
So if D10 was say 123456.7
And you had 12345678.9 in C20 or whatever, then it wouldn't be a match.
But it is a match using the left function.
But we don't know if that's desireable or not....
int() works just fine on text numbers
But not on actual Text like "hello".
Just forward thinking in case there are actual text strings mixed up in the range.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks