search data in one column and return first result from another column.

davids4500

New Member
Joined
Jan 14, 2023
Messages
21
Office Version
  1. 365
Platform
  1. Windows
search a column of data for "Air Freshener" (E2:E6550) and when the first correct result, return the first date that appears from another column (N2:N6550) where it is not empty.
 
The name of the table is ChreosStockArriving.
You don't have any tables with that name. The image that you posted shows the table names in your workbook. I assume that it is the underlined one below.

1705230823709.png


See if this does what you want. Check table name and column names for the relevant columns.

davids4500.xlsm
ABCDEFGH
1Column AColumn BNAMEColumn DColumn ESupplier OrdersArrivedate OneColumn H
2AFR065204872Air Freshener Truck Don't Look Back (Ocean)15/01/20241215/01/2024
3AFR157255927Air Freshener Beautiful Girl - Strawberry15/01/202419215/01/202430/05/2024
4AFR157255927Air Freshener Beautiful Girl - Strawberry30/05/20249615/01/202430/05/2024
5AFR172256671Air Freshener Make Difference Today15/01/202419215/01/2024
6AFR191257962Air Freshener Stay Close15/01/202419215/01/202430/05/2024
7AFR191257962Air Freshener Stay Close30/05/20244815/01/202430/05/2024
8AFR192257963Air Freshener Sometimes15/01/202419215/01/2024
9AFR205258599Air Freshener Pink Heart - Strawberry15/01/202419215/01/2024
10AFR209258603Air Freshener Be Happy Van Orange30/05/202424030/05/2024
ChreosStockarriving


davids4500.xlsm
RS
2Air Freshener15/01/2024
Keycategories
Cell Formulas
RangeFormula
S2S2=INDEX(FILTER(ChreosstockarrivingDavid__2[Arrivedate One],(ISNUMBER(SEARCH(R2,ChreosstockarrivingDavid__2[NAME])))*(ChreosstockarrivingDavid__2[Supplier Orders]>0),""),1)
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You don't have any tables with that name. The image that you posted shows the table names in your workbook. I assume that it is the underlined one below.

View attachment 104981

See if this does what you want. Check table name and column names for the relevant columns.

davids4500.xlsm
ABCDEFGH
1Column AColumn BNAMEColumn DColumn ESupplier OrdersArrivedate OneColumn H
2AFR065204872Air Freshener Truck Don't Look Back (Ocean)15/01/20241215/01/2024
3AFR157255927Air Freshener Beautiful Girl - Strawberry15/01/202419215/01/202430/05/2024
4AFR157255927Air Freshener Beautiful Girl - Strawberry30/05/20249615/01/202430/05/2024
5AFR172256671Air Freshener Make Difference Today15/01/202419215/01/2024
6AFR191257962Air Freshener Stay Close15/01/202419215/01/202430/05/2024
7AFR191257962Air Freshener Stay Close30/05/20244815/01/202430/05/2024
8AFR192257963Air Freshener Sometimes15/01/202419215/01/2024
9AFR205258599Air Freshener Pink Heart - Strawberry15/01/202419215/01/2024
10AFR209258603Air Freshener Be Happy Van Orange30/05/202424030/05/2024
ChreosStockarriving


davids4500.xlsm
RS
2Air Freshener15/01/2024
Keycategories
Cell Formulas
RangeFormula
S2S2=INDEX(FILTER(ChreosstockarrivingDavid__2[Arrivedate One],(ISNUMBER(SEARCH(R2,ChreosstockarrivingDavid__2[NAME])))*(ChreosstockarrivingDavid__2[Supplier Orders]>0),""),1)
You are incredible...Thank you so much. This is so good!
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
(The result would have come a lot faster though if you had been clearer with details and had carefully addressed questions being asked of you. ;))
 
Upvote 0

Forum statistics

Threads
1,215,112
Messages
6,123,162
Members
449,099
Latest member
afishi0nado

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