Search code examples
regexgoogle-sheetssplitgoogle-sheets-formulaarray-formulas

How to get a specific value from a Cell which has a lot of data


I want to get only the price's encased in brackets in Price EUR cell:

Sheet link: https://docs.google.com/spreadsheets/d/1xoNPfIfrVv7jF8W3Pa67Iu9oJRz2NOncW7oLQ94mWQ4

image


Solution

  • try:

    =IFNA(INDEX(TRIM(ARRAY_CONSTRAIN(SUBSTITUTE(
     SPLIT(REGEXEXTRACT($A3, B1&"(.+)"), "]"), "[", ), 1, 2))), 0)
    

    enter image description here