Forum Discussion

Gopal_Gope's avatar
Gopal_Gope
Copper Contributor
May 24, 2024

Excel formula help please

I need information on how to extract the exact state from the middle of the address using a formula in a separate column.

  • dscheikey's avatar
    dscheikey
    Bronze Contributor

    Gopal_Gope 

    Hi, do you have a list of the states, or is the information in the cells separated by commas or something similar? Can you show an example of an address cell?

     

    Please see my example. It may already be working.

    =XLOOKUP(TRUE,ISNUMBER(XMATCH("*"&B$2:B$14&"*",A2,2)),B$2:B$14,"")

     

     

Resources