
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jan 20, 2022 01:47 AM
Hai, can anyone help me to write formula but based on single select column.
If single select = Kg will be multiply 1 ( * 1)
then If single select = Box will be multiply 5 (* 5)
and then if single select = 200 gram will be divide 5 (/ 5)
Solved! Go to Solution.
1 Solution
Accepted Solutions

Solved
See Solution in Thread
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jan 20, 2022 09:13 AM
Hi Lucas. You want to use the SWITCH statement. Something like that below should work.
IF(AND({Jumlah (Kg)},Unit),
SWITCH(Unit,
"Kg", {Jumlah (Kg)},
"Box", {Jumlah (Kg)} * 5,
"200grm", {Jumlah (Kg)} / 5
)
)
Reply
1 Reply 1

Solved
See Solution in Thread
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jan 20, 2022 09:13 AM
Hi Lucas. You want to use the SWITCH statement. Something like that below should work.
IF(AND({Jumlah (Kg)},Unit),
SWITCH(Unit,
"Kg", {Jumlah (Kg)},
"Box", {Jumlah (Kg)} * 5,
"200grm", {Jumlah (Kg)} / 5
)
)
Reply
