Search sheet 1 and update the summar in sheet 2

nianchi111

Board Regular
Joined
Aug 24, 2007
Messages
197
Office Version
  1. 365
HI All,

I have 2 sheets in an excel.

take the first name in the sheet 1 and search in sheet 2 and based on the country from and to update in the "1" in the sheet 1 under the respective contries.

In sheet 2 there would be multiple entries so it has to search for all the data and update in sheet 1, once this is done it has to take the next name is sheet 1 and do the same.


In sheet 1 I want a summary of this like below


USACanadaIranMexicoPakistanIndia
Vimal
1​
1​
1​
1​
1​
Kumar
1​
1​
1​
1​
1​

Sheet 2 - has the list of data of people who travelled to different countries

NameFromTo
VimalIndiaUSA
VimalCanadaIran
VimalIranMexico
KumarCanadaMexico
KumarMexicoUSA
KumarUSACanada
KumarIndiaPakistan

Thanks,
Vimal Vikraman
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
microsoft Excel for microsoft 365 MSO (16.0.13801.21072) 32 bit
 
Upvote 0
Thanks for that.
How about
+Fluff 1.xlsm
ABC
1NameFromTo
2VimalIndiaUSA
3VimalCanadaIran
4VimalIranMexico
5KumarCanadaMexico
6KumarMexicoUSA
7KumarUSACanada
8KumarIndiaPakistan
Sheet2


+Fluff 1.xlsm
ABCDEFG
1USACanadaIranMexicoPakistanIndia
2Vimal111101
3Kumar110111
Sheet1
Cell Formulas
RangeFormula
B2:G3B2=--(COUNT(FILTER(ROW(Sheet2!$A$2:$A$10),(Sheet2!$A$2:$A$10=$A2)*((Sheet2!$B$2:$B$10=B$1)+(Sheet2!$C$2:$C$10=B$1))))>0)
 
Upvote 0
Thank you So much !!! This work perfectly. You have saved me. Thanks you so much.....
 
Upvote 0
Sorry to bother you again, I have 20K + names in sheet1 and when pasting this formula in all the cells its file is getting corrupted.

Is there any way to solve this please.
 
Upvote 0
In what way is it getting corrupted?
 
Upvote 0
it says loading and now I'm unable to open that file.

i think it still running in the background as I'm unable to open any of the excel files
 
Upvote 0
In that case your only other option would be VBA, but that won't update automatically.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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