Search and result

jigarecity

New Member
Joined
Apr 7, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Dear All,

kindly find attached photo of data ..

in A column FULL NAME LIST available with SR & Section
in E column short Name list available

Now i have to search short name (F2 Cell) from A column and given result in G & H for SR & Section in yellow area ..

hope you understand my problem.. if you have any query please feel free to revert.

Thanks in Advance
jigarecity
 

Attachments

  • attendance.JPG
    attendance.JPG
    105.1 KB · Views: 9

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi,

Please post samples using XL2BB so that we don't have to manually recreate your data for testing, see my signature for where and how.
Is this what you need?

Book3.xlsx
ABCDEF
1SRSectionSRSection
2john jack doe1Ajane abc2B
3jane jill abc2Bjack jillNot ListedNot Listed
4joe doe jack3Cjohn doe1A
5
6
7
8
9
10
Sheet908
Cell Formulas
RangeFormula
E2:F4E2=IFERROR(LOOKUP(2,1/SEARCH(LEFT($D2,FIND(" ",$D2))&"*"&MID($D2,FIND(" ",$D2),99),$A$2:$A$10),B$2:B$10),"Not Listed")
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Search and result
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Hi,

Please post samples using XL2BB so that we don't have to manually recreate your data for testing, see my signature for where and how.
Is this what you need?

Book3.xlsx
ABCDEF
1SRSectionSRSection
2john jack doe1Ajane abc2B
3jane jill abc2Bjack jillNot ListedNot Listed
4joe doe jack3Cjohn doe1A
5
6
7
8
9
10
Sheet908
Cell Formulas
RangeFormula
E2:F4E2=IFERROR(LOOKUP(2,1/SEARCH(LEFT($D2,FIND(" ",$D2))&"*"&MID($D2,FIND(" ",$D2),99),$A$2:$A$10),B$2:B$10),"Not Listed")
Thank you very much
it's work perfectly
5*
 
Upvote 0
In F2 then copied across and Down till required.
VBA Code:
=IFERROR(INDEX(B$3:B$19,AGGREGATE(15,6,ROW($A$3:$A$19)/((ISNUMBER(SEARCH(LEFT($E2,FIND(" ",$E2)-1),$A$3:$A$19))+ISNUMBER(SEARCH(RIGHT($E2,LEN($E2)-FIND(" ",$E2)),$A$3:$A$19)))=2),1)-ROW($A$2)),"")
In range $A$3:$A$19 19 can be changed as required.
 
Upvote 0
Thank you very much
it's work perfectly
5*

You're welcome, thanks for the feedback.

Don't forget to mark the post that solved your question as solution. Thank you.
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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