I've been searching around but still didn't find the answer. I'd like to see and calculate certain results based on my criteria. if
and match
functions wouldn't get what I look for. The original dataset looks like this:
Type Name Value
A DK 3
A MO 2
A OM 5
A LSO 3
B GOP 6
B ADG 5
C BFC 7
D TMD 6
What I want to get is if Type =A, then list the names and calculate the weight based on value, which should look like below:
DK 0.081
MO 0.054
OM 0.135
LSO 0.081
Any suggestion is appreciated. Thank you so much!