简体   繁体   中英

Adding 25% to Column in Excel

I have a CSV file that I want to adjust pricing. How would I add 25% to the price column. It has 1700 products on it so doing it by hand would take to long.

The column looks like this:

Price 0 69.9875 169.9875 [FIXED]69.9875 [FIXED]169.9875

https://docs.google.com/spreadsheets/d/1dRXZ50t4AWRTOAQUYRFKlAsWh_BWJs5kfjvyq79xSvA/edit?usp=sharing

I can get it to change the numbers but the cells with text it wont change. Any ideas?

Thanks

try:

=ARRAYFORMULA(IFERROR(IFERROR(REGEXEXTRACT(A1:A&"", "(\[.+\])\d+(?:.\d+)?"))&
 (REGEXEXTRACT(A1:A&"", "\d+(?:.\d+)?")+
  REGEXEXTRACT(A1:A&"", "\d+(?:.\d+)?")*0.25)))

在此处输入图像描述


update:

No just 25% off to the [FIXED] Items

=ARRAYFORMULA(IF(REGEXMATCH(A2:A&"", "(\[.+\])\d+(?:.\d+)?"), 
 IFERROR(IFERROR(REGEXEXTRACT(A2:A&"", "(\[.+\])\d+(?:.\d+)?"))&
 (REGEXEXTRACT(A2:A&"", "\d+(?:.\d+)?")+
  REGEXEXTRACT(A2:A&"", "\d+(?:.\d+)?")*0.25)), A2:A))

在此处输入图像描述

demo sheet

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