Split cell and Calculate formula

%3CLINGO-SUB%20id%3D%22lingo-sub-1627553%22%20slang%3D%22en-US%22%3ESplit%20cell%20and%20Calculate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1627553%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ELittle%20introduction%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20try%20build%20complex%20and%20clear%20excel%20too%20calculate%20servals%20aspect%20of%20game%20economy%2C%20for%20beeter%20play%20and%20learn%20much%20more%20about%20excel.%20Including%20all%20that%20causes%20me%20a%20problem%20active%20counting%20of%20production%20cubes%3C%2FP%3E%3CP%3EFor%20now%20I%20use%20PowerQuery%20to%20collect%20acctual%20data%20from%20web%2C%20mainly%20buy%2C%20sell%20prices%20and%20other.%3C%2FP%3E%3CP%3ENext%20i%20have%20table%20with%20all%20recipe%20to%20construct%20various%20things.%20This%20recipe%20i%20write%20to%20one%20cell%2C%20and%20in%20second%20Power%20query%20i%20split%20this%20cell%20to%20rows%20and%20columns.%20Calculate%20this%20and%20send%20me%20information%20about%20cost%20and%20in%20thrird%20query%20group%20this%20prices.%3C%2FP%3E%3CP%3EThis%20work%20good%20but%20is%20very%20unpleasand%26nbsp%3B%20to%20use.%3C%2FP%3E%3CP%3E%3CSTRONG%3EProblem%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIf%20is%20possibile%20to%20split%20cell%20using%20only%20excel%20formulas%20and%20calculate%20this%3F%3C%2FP%3E%3CP%3EFor%20now%20I%20was%20think%20about%26nbsp%3B%20using%20LET%20formula%20to%20split%20cell%2C%20calculate%20materials%20and%20multiply%20by%26nbsp%3B%20price%20finded%20buy%20Index(Match)%2C%26nbsp%3Bbut%20I%20don't%20know%20how%20split%20cell%20to%20use%20in%20Excel%20formulas%20formula%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EExample%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2233.333333333333336%25%22%3EGravimetric%20Sensor%20Cluster%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%3E2600%3C%2FTD%3E%3CTD%20width%3D%2233.333333333333336%25%22%3ETitanium%20Carbide%2F22%3CBR%20%2F%3ENanotransistors%2F1%3CBR%20%2F%3EHypersynaptic%20Fibers%2F2%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecreate%20formula%20who%20work%20somelike%20like%20this%20(write%20pseudocode)%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3ESPLITFORMULA(%20cell%20to%20array%20where%20you%20calculate%20like%20example%20below%3A%0A%26nbsp%3B%20%20%20%20SUM(INDEX(price%3Bmatch(Titanium%20Carbide%20from%20other%20sheet)*22*2600%20%2B%0A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20INDEX(price%3Bmatch(Nanotransistors%20from%20other%20sheet)*1*2600%20%2B%0A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20INDEX(price%3Bmatch(Hypersynaptic%20Fibers%20from%20other%20sheet)*2*2600)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3EIf%20you%20see%20something%20what%20I%20can%20use%3F%3C%2FP%3E%3CP%3EI%20slowly%20think%20about%20type%20new%20formula%20in%20VBA.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%2C%3C%2FP%3E%3CP%3ENoxam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1627553%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1762708%22%20slang%3D%22en-US%22%3ERe%3A%20Split%20cell%20and%20Calculate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1762708%22%20slang%3D%22en-US%22%3E%3CP%3EBetter%20share%20the%20File%20with%20us%2C%20and%20let%20us%20examine%20the%20data%20to%20fix%20the%20issue.%20Seems%20you%20are%20trying%20to%20SUM%20value%20across%20workbook%20!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1764094%22%20slang%3D%22en-US%22%3ERe%3A%20Split%20cell%20and%20Calculate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1764094%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F771977%22%20target%3D%22_blank%22%3E%40Noxam_Sherei%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENoxam%2C%20so%20far%20there%20is%20no%20TEXTSPLIT()%20formula%20in%20Excel.%20You%20may%20use%20FILTERXML()%20to%20split%20the%20text%2C%20but%20I%20don't%20think%20everything%20could%20be%20done%20in%20one%20cell%2C%20even%20with%20combining%20everything%20by%20LET().%3C%2FP%3E%0A%3CP%3EFirst%20you%20shall%20split%20text%20lines%2C%20after%20that%20each%20line%20split%20on%20text%20and%20number%20which%20gives%20array%20in%20array%3B%20after%20that%20make%20some%20aggregation%20using%20arrays%20elements.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20variant%20you%20may%20make%20such%20particular%20aggregation%20in%20Power%20Query%2C%20but%20it%20depends%20on%20how%20the%20data%20is%20structured%20and%20what%20else%20you%20need%20to%20have%20in%20resulting%20table%20except%20mentioned%20data.%3C%2FP%3E%0A%3CP%3EIf%20speak%20about%20separate%20cells%2C%20perhaps%20for%20the%20converting%20text%20in%26nbsp%3Bone%20cell%20into%20the%20sum%20in%20another%20cell%20VBA%20will%20be%20better%20solution.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1766487%22%20slang%3D%22en-US%22%3ERe%3A%20Split%20cell%20and%20Calculate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1766487%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F771977%22%20target%3D%22_blank%22%3E%40Noxam_Sherei%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAssuming%20the%20example%20values%20you%20showed%20are%20in%20cells%20A1%3AC1%2C%20give%20this%20formula%20a%20try...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DSUMPRODUCT(B1*IFERROR(TRIM(MID(SUBSTITUTE(%22%2F%22%26amp%3BSUBSTITUTE(C1%2CCHAR(10)%2C%22%2F%22)%2C%22%2F%22%2CREPT(%22%20%22%2C300))%2C2*ROW(INDIRECT(%221%3A%22%26amp%3B1%2BLEN(C1)-LEN(SUBSTITUTE(C1%2CCHAR(10)%2C%22%22))))*300%2C300))%2C0))%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1766495%22%20slang%3D%22en-US%22%3ERe%3A%20Split%20cell%20and%20Calculate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1766495%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F161043%22%20target%3D%22_blank%22%3E%40Frederick%20Rothstein%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20will%20be%202600*(22%2B1%2B2)%2C%20but%20not%202600*(22*(value%20found%20based%20on%20text%20before%2022)%2B1*(value%20found%20based%20on%20text%20before%201)%2B2*(value%20found%20based%20on%20text%20before%202)%20)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1766575%22%20slang%3D%22en-US%22%3ERe%3A%20Split%20cell%20and%20Calculate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1766575%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EI%20did%20not%20get%20the%20idea%20from%20the%20OP's%20formula%20that%20he%20was%20conditioning%20which%20numbers%20to%20use%20based%20on%20the%20text%20before%20the%20number.%20What%20it%20looked%20like%20to%20me%20was%20that%20the%20OP%20wanted%20to%20multiply%20each%20number%20in%20cell%20C1%20by%20the%20value%20in%20cell%20B1%20and%20then%20add%20them%20up.%20My%20code%20is%20equivalent%20to%20that.%20Based%20on%20your%20interpretation%20of%20what%20the%20OP%20wants%2C%20what%20value%20do%20you%20see%20as%20the%20desired%20result%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEDIT%20NOTE%3A%20Ignore%20the%20above%20response...%20I%20reread%20the%20OP's%20message%20again%20and%20see%20what%20you%20mean.%20My%20earlier%20posted%20formula%20does%20not%20do%20what%20I%20now%20see%20as%20the%20OP's%20question.%20Thanks%20for%20noting%20this%20for%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1766633%22%20slang%3D%22en-US%22%3ERe%3A%20Split%20cell%20and%20Calculate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1766633%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F771977%22%20target%3D%22_blank%22%3E%40Noxam_Sherei%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20want%20to%20look%20the%20price%20of%20each%20item%20up%20in%20another%20sheet%2C%20then%20multiply%20by%20the%20quantity%20(after%20the%20%2F)%20and%20then%20multiply%20by%20another%20quantity%20in%20the%20adjacent%20cell%20(2600)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAssuming%20your%20example%20is%20in%20Sheet1!A1%3AC1.%20Assuming%20your%20price%20list%20is%20at%20Sheet2!A1%3AB3%20(description%20in%20Col%20A%20and%20price%20in%20Col%20B).%20And%2C%20assuming%20the%20individual%20items%20in%20cell%20C1%20are%20separated%20by%20Alt%2BEnter%20(CHAR(10))%2C%20then%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESelect%20Sheet1%2C%20cell%20D1%2C%20then%20click%20name%20manager%20and%20enter%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EName%20%3D%20Eval%3C%2FP%3E%3CP%3EScope%3D%20Select%20your%20worksheet%3C%2FP%3E%3CP%3ERefersTo%3D%26nbsp%3BEVALUATE(TEXTJOIN(%22%2B%22%2CTRUE%2CSUBSTITUTE(SUBSTITUTE(FILTERXML(%22%3CL%3E%3CI%3E%22%26amp%3BSUBSTITUTE(Sheet1!C1%2CCHAR(10)%2C%22%3C%2FI%3E%3CI%3E%22)%26amp%3B%22%3C%2FI%3E%3C%2FL%3E%22%2C%22%2F%2FI%22)%2CSheet2!%24A%241%3A%24A%243%2CSheet2!%24B%241%3A%24B%243)%2C%22%2F%22%2C%22*%22)))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%2C%20in%20cell%20D1%20enter%3A%3C%2FP%3E%3CP%3E%3DB1*Eval%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20included%20my%20test%20workbook.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1767431%22%20slang%3D%22en-US%22%3ERe%3A%20Split%20cell%20and%20Calculate%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1767431%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F675152%22%20target%3D%22_blank%22%3E%40JMB17%3C%2FA%3E%26nbsp%3B%2C%20that's%20a%20great%20idea.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20translate%20your%20idea%20literally%20to%20avoid%20EVALUATE%20that%20will%20be%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DLET(%0A%20%20%20value%2CB1%2C%0A%20%20%20text%2C%20C1%2C%0A%20%20%20tableText%2CSheet2!%24A%241%3A%24A%243%2C%0A%20%20%20tableNumber%2C%20Sheet2!%24B%241%3A%24B%243%2C%0A%20%20%20splitLines%2C%20FILTERXML(%22%3CL%3E%3CI%3E%22%26amp%3BSUBSTITUTE(C1%2CCHAR(10)%2C%22%3C%2FI%3E%3CI%3E%22)%26amp%3B%22%3C%2FI%3E%3C%2FL%3E%22%2C%22%2F%2FI%22)%2C%0A%20%20%20replaceTexts%2C%20SUBSTITUTE(splitLines%2CtableText%2CtableNumber)%2C%0A%20%20%20lookupNumbers%2C%20LEFT(replaceTexts%2CSEARCH(%22%2F%22%2CreplaceTexts)-1)%2C%0A%20%20%20numbers%2C%20RIGHT(replaceTexts%2CLEN(replaceTexts)-SEARCH(%22%2F%22%2CreplaceTexts))%2C%0A%20%20%20Result%2C%20SUM(lookupNumbers*numbers)*value%2C%0AResult)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EIf%20the%20table%20with%20the%20data%20will%20be%20like%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20258px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225734i521523A3D8312A13%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ewhen%20we%20may%20use%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DLET(%0A%20%20%20value%2CB1%2C%0A%20%20%20text%2C%20C1%2C%0A%20%20%20splitLines%2C%20FILTERXML(%22%3CL%3E%3CI%3E%22%26amp%3BSUBSTITUTE(text%2CCHAR(10)%2C%22%3C%2FI%3E%3CI%3E%22)%26amp%3B%22%3C%2FI%3E%3C%2FL%3E%22%2C%22%2F%2FI%22)%2C%0A%20%20%20getTexts%2C%20LEFT(splitLines%2CSEARCH(%22%2F%22%2CsplitLines)-1)%2C%0A%20%20%20getNumbers%2C%20INDEX(tblData%5BValue%5D%2CXMATCH(getTexts%2CtblData%5BName%5D))%2C%0A%20%20%20numbers%2C%20RIGHT(splitLines%2CLEN(splitLines)-SEARCH(%22%2F%22%2CsplitLines))%2C%0A%20%20%20Result%2C%20SUM(getNumbers*numbers)*value%2C%0AResult)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

 

Little introduction:

I try build complex and clear excel too calculate servals aspect of game economy, for beeter play and learn much more about excel. Including all that causes me a problem active counting of production cubes

For now I use PowerQuery to collect acctual data from web, mainly buy, sell prices and other.

Next i have table with all recipe to construct various things. This recipe i write to one cell, and in second Power query i split this cell to rows and columns. Calculate this and send me information about cost and in thrird query group this prices.

This work good but is very unpleasand  to use.

Problem:

If is possibile to split cell using only excel formulas and calculate this?

For now I was think about  using LET formula to split cell, calculate materials and multiply by  price finded buy Index(Match), but I don't know how split cell to use in Excel formulas formula

 

Example:

 

Gravimetric Sensor Cluster2600Titanium Carbide/22
Nanotransistors/1
Hypersynaptic Fibers/2

 

create formula who work somelike like this (write pseudocode)

SPLITFORMULA( cell to array where you calculate like example below:
     SUM(INDEX(price;match(Titanium Carbide from other sheet)*22*2600 +
          INDEX(price;match(Nanotransistors from other sheet)*1*2600 +
          INDEX(price;match(Hypersynaptic Fibers from other sheet)*2*2600)


If you see something what I can use?

I slowly think about type new formula in VBA.

 

Best Regards,

Noxam

7 Replies

Better share the File with us, and let us examine the data to fix the issue. Seems you are trying to SUM value across workbook !!

@Noxam_Sherei 

Noxam, so far there is no TEXTSPLIT() formula in Excel. You may use FILTERXML() to split the text, but I don't think everything could be done in one cell, even with combining everything by LET().

First you shall split text lines, after that each line split on text and number which gives array in array; after that make some aggregation using arrays elements. 

As variant you may make such particular aggregation in Power Query, but it depends on how the data is structured and what else you need to have in resulting table except mentioned data.

If speak about separate cells, perhaps for the converting text in one cell into the sum in another cell VBA will be better solution.

@Noxam_Sherei 

 

Assuming the example values you showed are in cells A1:C1, give this formula a try...

 

=SUMPRODUCT(B1*IFERROR(TRIM(MID(SUBSTITUTE("/"&SUBSTITUTE(C1,CHAR(10),"/"),"/",REPT(" ",300)),2*ROW(INDIRECT("1:"&1+LEN(C1)-LEN(SUBSTITUTE(C1,CHAR(10),""))))*300,300)),0))

@Frederick Rothstein 

That will be 2600*(22+1+2), but not 2600*(22*(value found based on text before 22)+1*(value found based on text before 1)+2*(value found based on text before 2) )

@Sergei Baklan,

I did not get the idea from the OP's formula that he was conditioning which numbers to use based on the text before the number. What it looked like to me was that the OP wanted to multiply each number in cell C1 by the value in cell B1 and then add them up. My code is equivalent to that. Based on your interpretation of what the OP wants, what value do you see as the desired result?

 

EDIT NOTE: Ignore the above response... I reread the OP's message again and see what you mean. My earlier posted formula does not do what I now see as the OP's question. Thanks for noting this for me.

@Noxam_Sherei 

 

You want to look the price of each item up in another sheet, then multiply by the quantity (after the /) and then multiply by another quantity in the adjacent cell (2600)?

 

Assuming your example is in Sheet1!A1:C1. Assuming your price list is at Sheet2!A1:B3 (description in Col A and price in Col B). And, assuming the individual items in cell C1 are separated by Alt+Enter (CHAR(10)), then

 

Select Sheet1, cell D1, then click name manager and enter:

 

Name = Eval

Scope= Select your worksheet

RefersTo= EVALUATE(TEXTJOIN("+",TRUE,SUBSTITUTE(SUBSTITUTE(FILTERXML("<L><I>"&SUBSTITUTE(Sheet1!C1,CHAR(10),"</I><I>")&"</I></L>","//I"),Sheet2!$A$1:$A$3,Sheet2!$B$1:$B$3),"/","*")))

 

Then, in cell D1 enter:

=B1*Eval

 

I also included my test workbook.

@JMB17 , that's a great idea.

 

If translate your idea literally to avoid EVALUATE that will be

=LET(
   value,B1,
   text, C1,
   tableText,Sheet2!$A$1:$A$3,
   tableNumber, Sheet2!$B$1:$B$3,
   splitLines, FILTERXML("<L><I>"&SUBSTITUTE(C1,CHAR(10),"</I><I>")&"</I></L>","//I"),
   replaceTexts, SUBSTITUTE(splitLines,tableText,tableNumber),
   lookupNumbers, LEFT(replaceTexts,SEARCH("/",replaceTexts)-1),
   numbers, RIGHT(replaceTexts,LEN(replaceTexts)-SEARCH("/",replaceTexts)),
   Result, SUM(lookupNumbers*numbers)*value,
Result)

If the table with the data will be like

image.png

when we may use

=LET(
   value,B1,
   text, C1,
   splitLines, FILTERXML("<L><I>"&SUBSTITUTE(text,CHAR(10),"</I><I>")&"</I></L>","//I"),
   getTexts, LEFT(splitLines,SEARCH("/",splitLines)-1),
   getNumbers, INDEX(tblData[Value],XMATCH(getTexts,tblData[Name])),
   numbers, RIGHT(splitLines,LEN(splitLines)-SEARCH("/",splitLines)),
   Result, SUM(getNumbers*numbers)*value,
Result)