简体   繁体   中英

Excel - search for specific text in a row then copy and paste that value into a specific cell

I need to search each row of a spreadsheet for a mac address with format **:**:**:**:**:**

I want to search cells h3-z3 for a mac address and when found copy and paste the mac address into g3

Once I have the formula for one row I will fill down for all rows of the spreadsheet

Help is greatly appreciated!

Use INDEX/MATCH with wildcards:

=INDEX(H3:Z3,MATCH("*:*:*:*:*:*",H3:Z3,0))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM