Hi,
I have a problem and i was wandering if it is possible to solve with one formula in one cell.
So i have a data set where i have 3 columns:
1) 18 characters "key" string (which looks something like that ABC123456781234567)
2) different dates
3) amounts (are not formatted as amount, to format it as amount i need to use formula =SUBSTITUTE(amount;".";"")
Data sheet
Col1 Col2 Col3
ABC123456781234567 2022-06-27 37,23
DEF234567893322112 2022-06-22 1.345,34
GHI456789013254672 2022-06-29 456,21
(the real one has around 250 rows)
for the "key" string can be split into 3 parts:
1) letters (ABC) which are corresponding to lets say colour, mapping looks like that:
Sheet1
Col1 Col2
ABC Green
DEF Yellow
GHI White
JKL Orange
2) second part is made of 8 next digits (in this case 12345678) for which i have much longer mapping where those numbers are corresponding with other numbers, so something like that:
Sheet2
Col1 Col2
12345678 11
23456789 12
34567890 13
45678901 11
56789012 13
third part of string is relevant.
What i am trying write is formula that calculates in one cell sum of all lines which from first part of "key" get Green, from second get 11 for only one day.
Any ideas?
I would like to avoid using VBA and adding new helper columns
I have a problem and i was wandering if it is possible to solve with one formula in one cell.
So i have a data set where i have 3 columns:
1) 18 characters "key" string (which looks something like that ABC123456781234567)
2) different dates
3) amounts (are not formatted as amount, to format it as amount i need to use formula =SUBSTITUTE(amount;".";"")
Data sheet
Col1 Col2 Col3
ABC123456781234567 2022-06-27 37,23
DEF234567893322112 2022-06-22 1.345,34
GHI456789013254672 2022-06-29 456,21
(the real one has around 250 rows)
for the "key" string can be split into 3 parts:
1) letters (ABC) which are corresponding to lets say colour, mapping looks like that:
Sheet1
Col1 Col2
ABC Green
DEF Yellow
GHI White
JKL Orange
2) second part is made of 8 next digits (in this case 12345678) for which i have much longer mapping where those numbers are corresponding with other numbers, so something like that:
Sheet2
Col1 Col2
12345678 11
23456789 12
34567890 13
45678901 11
56789012 13
third part of string is relevant.
What i am trying write is formula that calculates in one cell sum of all lines which from first part of "key" get Green, from second get 11 for only one day.
Any ideas?
I would like to avoid using VBA and adding new helper columns