Index/Match in a vba

Plukey

Board Regular
Joined
Apr 19, 2019
Messages
138
Office Version
  1. 2016
Platform
  1. Windows
I'm currently using two formulas that works great. Thing is.. I'm combing two columns C & D w/
Code:
=C2&"-"D2)
for the search on DISPO! Sheet. Searching through "J" and finding a match on Sheet (Key! returning results from columns 2 & 12 . It doesn't return correct result when the combined =C & D once I ctrl C and just paste values the results are right. but I need it continue the rows when someone adds data. The E2:E is the combined C&D that column is hidden.
Code:
=IFERROR(INDEX(Shipout_Dispo_Status.xlsm!COMPDATA,MATCH(1,(DISPO!E2:COLME=$B$4)*(Shipout_Dispo_Status.xlsm!STAN=B6),0),2),"")
Code:
=IFERROR(INDEX(Shipout_Dispo_Status.xlsm!COMPDATA,MATCH(1,(DISPO!E2:COLME=$B$4)*(Shipout_Dispo_Status.xlsm!STAN=B6),0),12),"")

The results are on another sheet for a co-worker to simply enter eg.116b-22 and gets the current status from 2nd column & closed date from the 12th
Hope I made since...
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Sorry, Its not "J" I meant Column E that's combined from Col C & D.... Column "F" for the 2nd criteria to return results from the 2nd and 12th Col The Search Cell is B4 from another Sheet called Report

& the B6 - b30 is on the report sheet.. I wa mixing two different tasks busy day today.

COMPDATA=Complete Data
CLOME= Col "E" (Combined C & D)
STAN= Col "F"
Returning Col B & L
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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