Hi,
I would like to combine two formula which I've wrote, wondering whether it is possible?
=INDEX([test.xls]Sheet1!$A$2:$A$100,MATCH((--$B2),[test.xls]Sheet1!$B$2:$B$100,FALSE),1
=INDEX([test.xls]Sheet1!$A$4,MATCH($B2&$C2,[test.xls]Sheet1!$B$2&$C$2,0),1)
Note: The second formula isn't working as supoose.
Let me give a background explanation on how I derive fomula no. 1
Logic, I need to match Code on my master reference with those on my working report, if a match is found, it will return Yes under column A 'Exclude' on my working report.
--My working report
Column A
Exclude
(Blank)
(Blank)
(Blank)
Column B
Code
0123456
0123965
9712841
Column C
Currency
S$
S$
S$
--test.xls(My source/master reference)
Column A
Present
Yes
Yes
Column B
Code
9712841
9755041
Column C
Currency
S$
S$
----------------------------------------------------------------------------------------------
Using the formula no.1, i copy and paste to my report, i would get below result after doing an Autofill on column A
Column A
Exclude
(Blank)
(Blank)
Yes
(Blank)
Column B
Code
0123456
0123965
9712841
Column C
Currency
S$
S$
S$
I added the unary -- infront of Cell B2 because working report display 7 digit numbers in General Format whilst my master reference is using Custom format 0000000 make allowance for 7 digits code.
It works well for me until I was told to add in a special criteria, I have an alternative master reference, lets call this 'special reference'
Note: I need to ensure when a match for Code no. 0184342 and Currency : US$ is found, my result will be 'Yes' under Exclude on (Column A)
Below is what I'm hoping to achieve as the end result
----------------------------------------------------------------------------------------------
--Resultant on report should look like this
Column A
Exclude
(Blank)
(Blank)
Yes
(Blank)
Yes
(Blank)
Column B
Code
0123456
0123965
9712841
0184342
0184342
Column C
Currency
S$
S$
S$
S$
US$
--test.xls(My source/master reference)
Column A
Present
Yes
Yes
Yes
Column B
Code
9712841
9755041
0184342
Column C
Currency
S$
S$
US$
I derived formula no.2 hoping to combine it with formula 1 eventually, but SADLY the former doesn't work.
Can someone help pls!! How to combine this two criteria
=INDEX([test.xls]Sheet1!$A$2:$A$100,MATCH((--$B2),[test.xls]Sheet1!$B$2:$B$100,FALSE),1
=INDEX([test.xls]Sheet1!$A$4,MATCH($B2&$C2,[test.xls]Sheet1!$B$2&$C$2,0),1)
Thanks for any advice in advance
Bookmarks