Array Formula and Substitute

Jewells0905

New Member
Joined
Mar 10, 2024
Messages
42
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am trying to write a formula to copy the contents of column C to column D, with the substitution of "Herbs and Spices" to "Herbs and spices".
This is what I currently have and am getting an error - Result was not automatically expanded, please insert more rows (1). (this is also with google sheets if that matters) =ARRAYFORMULA(SUBSTITUTE(C:C,"Herbs and Spices","Herbs and spices",C2:C908)) the arrayformula works on it's own.
This is just a small portion from the entire sheet, as I am not able to get the minisheet to upload

Food NameScientific NameGroupGroup (Cleaned)Subgroup
AngelicaAngelica keiskeiHerbs and Spices#REF!Herbs
Savoy cabbageBrassica oleracea var. sabaudaVegetablesCabbages
Silver lindenTilia argenteaHerbs and SpicesHerbs
KiwiActinidia chinensisFruitsTropical fruits
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I am trying to write a formula to copy the contents of column C to column D, with the substitution of "Herbs and Spices" to "Herbs and spices".
This is what I currently have and am getting an error - Result was not automatically expanded, please insert more rows (1). (this is also with google sheets if that matters) =ARRAYFORMULA(SUBSTITUTE(C:C,"Herbs and Spices","Herbs and spices",C2:C908)) the arrayformula works on it's own.
This is just a small portion from the entire sheet, as I am not able to get the minisheet to upload

Food NameScientific NameGroupGroup (Cleaned)Subgroup
AngelicaAngelica keiskeiHerbs and Spices#REF!Herbs
Savoy cabbageBrassica oleracea var. sabaudaVegetablesCabbages
Silver lindenTilia argenteaHerbs and SpicesHerbs
KiwiActinidia chinensisFruitsTropical fruits
nevermind I finally figured this one out. I used this formula =ARRAYFORMULA(SUBSTITUTE(C2:C, "Herbs and Spices", "Herbs and spices"))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top