I cannot Add The Singles and Bundles
For Example I want to Sum 1B/20 (1 Box and 20 pieces) + 5B/40 (5 Boxes and 40 Pieces)
What Formula can I Use to Solve This
1B/20 + 5B/40 - 2B/12
Output: 4B/48
I cannot Add The Singles and Bundles
For Example I want to Sum 1B/20 (1 Box and 20 pieces) + 5B/40 (5 Boxes and 40 Pieces)
What Formula can I Use to Solve This
1B/20 + 5B/40 - 2B/12
Output: 4B/48
Welcome to the forum.
You should have included expected results in your workbook and I suspect there is more to it, but try this for starters:
=SUM(IFERROR(--LEFT($B4:$E4,FIND(" ",$B4:$E4)-1),0))&" Boxes/"&SUM(IFERROR(--MID($B4:$E4,FIND("/",$B4:$E4)+1,99),0))
AliGW on MS365 Beta Channel (Windows 11) 64 bit
A B C D E F 4Apple Juice 0 0 0 0 pc 0 Boxes/0 5Iced Tea 29 Box/27 0 3 Boxes 26 Box/27 58 Boxes/54 6Bottle 5 0 5 0 0 Boxes/0 7Medicine Brand 5 Box/36 0 8 5Box/28 5 Boxes/64 8Vitamin 7 Box/3 0 0 7 Box/3 14 Boxes/6 9Wine 1 0 0 1 0 Boxes/0 10Ballpen 2 Box/97 0 0 2 Box/97 4 Boxes/194 11Pencil 31 Bot/41 0 0 31Bot/41 31 Boxes/82
Sheet: Sheet1
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
I suggest you re-format data as shown attached as your method is not good practice.
Total using
=SUMPRODUCT(($H5:$N5)*($H$4:$N$4="B"))
=SUMPRODUCT(($I5:$O5)*($I$4:$O$4="P"))
Much simpler
Last edited by JohnTopley; 06-24-2022 at 04:02 AM.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Thank you for the rep.
Glad to have helped.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks