Formula for matching Data IN and OUT data from another sheet

Kenor

Board Regular
Joined
Dec 8, 2020
Messages
116
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I would like to match the Data IN and Data OUT in my Database.

I have used the formula below to match the data before.

=IFERROR(INDEX('Register OUT'!$A$3:$K$2000,MATCH(1,(DataBase!$C$2='Register OUT'!$C$3:$C$2000)*(DataBase!$D$2='Register OUT'!$D$3:$D$2000)*(DataBase!$E$2='Register OUT'!$E$2000)*(DataBase!$I$2='Register OUT'!$I$3:$I$2000),0),7),0)

Can see the image for details.
>> I want to get Data OUT from Register OUT sheet and match with Data IN in Database Sheet automatically.

But do not know why this time the formula did not become.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Should the test on Column E not cover the same range as all the others ?
Just formatting your formula it looks like the below.
I imagine it should have:- *(DataBase!$E$2='Register OUT'!$E$3:$E$2000)

Excel Formula:
=IFERROR(
INDEX('Register OUT'!$A$3:$K$2000,
    MATCH(1,(DataBase!$C$2='Register OUT'!$C$3:$C$2000)
                            *(DataBase!$D$2='Register OUT'!$D$3:$D$2000)
                            *(DataBase!$E$2='Register OUT'!$E$2000)
                            *(DataBase!$I$2='Register OUT'!$I$3:$I$2000),0),
7),0)
 
Upvote 0
Solution
Should the test on Column E not cover the same range as all the others ?
Just formatting your formula it looks like the below.
I imagine it should have:- *(DataBase!$E$2='Register OUT'!$E$3:$E$2000)

Excel Formula:
=IFERROR(
INDEX('Register OUT'!$A$3:$K$2000,
    MATCH(1,(DataBase!$C$2='Register OUT'!$C$3:$C$2000)
                            *(DataBase!$D$2='Register OUT'!$D$3:$D$2000)
                            *(DataBase!$E$2='Register OUT'!$E$2000)
                            *(DataBase!$I$2='Register OUT'!$I$3:$I$2000),0),
7),0)
Sorry, I couldn't upload image on previous email.

Kindly see attached image.
 

Attachments

  • Data OUT in Register OUT.JPG
    Data OUT in Register OUT.JPG
    133.3 KB · Views: 4
  • Database Sheet.JPG
    Database Sheet.JPG
    173.3 KB · Views: 5
Upvote 0
Should the test on Column E not cover the same range as all the others ?
Just formatting your formula it looks like the below.
I imagine it should have:- *(DataBase!$E$2='Register OUT'!$E$3:$E$2000)

Excel Formula:
=IFERROR(
INDEX('Register OUT'!$A$3:$K$2000,
    MATCH(1,(DataBase!$C$2='Register OUT'!$C$3:$C$2000)
                            *(DataBase!$D$2='Register OUT'!$D$3:$D$2000)
                            *(DataBase!$E$2='Register OUT'!$E$2000)
                            *(DataBase!$I$2='Register OUT'!$I$3:$I$2000),0),
7),0)

Thanks Alex,

When you do like that, it make more clear to me.
Now I already know why it doesn't function.
I make mistake in my formula
Wrong >> *(DataBase!$E$2='Register OUT'!$E$2000)
Correct >> *(DataBase!$E$2='Register OUT'!$E$3:$E$2000)

Thanks again.
 
Upvote 0
Yes, I find it much easier to read that way. Alt+Enter gives you the new line.
Thanks for letting me know. Glad I could help.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top