Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

Flexible formula to match strings in 1 row to run a formula in matching columns in another row

$
0
0

I have a row where all strings have the identical format (XX-#####-##) in which Xs are 2 upper case alphabet letters and the #s are integers.

Short example, see the doc for moreKC-30000-00 | KC-30000-01 | KC-30000-02 | KC-30000-05 | KC-30000-99 | KC-33821-05

My plan is to run a formula (let's say add 10%) in the next row of all columns except for the columns with strings in the range of "KC-30000-00" to "KC-30000-98".

I tried to define the range using the formula below (and a few others) but it still includes -99 and I couldn't improve it=ArrayFormula(IF(COLUMN(A1:1)=1,"HEADER",REGEXMATCH(A1:1,"KC-30000-[0-9][0-9]$")))

There are already many columns and it will grow so it's best to have a flexible formula in A3.

The doc has a few columns as a sample - https://docs.google.com/spreadsheets/d/1ytBameD5SrT6aNxed2sycKMB8BwMr8OVY5N1dO2vTjU/edit?usp=sharing

Please also feel free to suggest a better subject for this question to help others, perhaps.

Thank you in advance


Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>