please help. There is dataframe:
ArtNo Description Price
AAA Lore Ipsum 10
BBB Lore Ipsum 9
CCC Lore Ipsum 8
DDD AAA Lore Ipsum 0
EEE BBB Lore Ipsum 0
FFF CCC Lore Ipsum 0
GGG ZZZ Lore Ipsum 0
HHH AAA Lore Ipsum 0
I need to add a column with multiplied price instead of zero by article in Description column from article in ArtNo column. If there is no match (between ArtNo column and first word in Description to space), apply to "multiplied column" the same figure from Price column in same row:
ArtNo Description Price Price (multiplied) ???
AAA Lore Ipsum 10 10
BBB Lore Ipsum 9 9
CCC Lore Ipsum 8 8
DDD AAA Lore Ipsum 0 10
EEE BBB Lore Ipsum 0 9
FFF CCC Lore Ipsum 0 8
GGG ZZZ Lore Ipsum 0 0
HHH AAA Lore Ipsum 0 10
In excel it works like this:
IF (Price != 0; Price multiplied = Price;
IF(ISERROR(VLOOKUP(MID(Description;1;FIND(
' ';Description;1));TABLE;3;0));Price multiplied = Price;
ESLE: Price multiplied = VLOOKUP(MID(Description;1;FIND(
' ';Description;1));TABLE;3;0)
)
)
Thanks in advance.