Formula Help

CoryMaples

New Member
Joined
Dec 4, 2019
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I am trying to come up with a formula to count how many robot batteries are needed. Below you will see the formula that I am using to input the type of robot battery for that type of robot and multiply the quantity of robots in that column by 4 to come out with how many I need (each robot takes 4 batteries).
The problem that I am having is that I have (2) types of batteries, a C cell battery and a D cell battery. Is there a way to count both types of batteries in once cell so it looks like this 8 C and 2 D Batteries?


1575464182907.png

1575464243674.png
 

Attachments

  • 1575464143736.png
    1575464143736.png
    45.3 KB · Views: 8

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi CoryMaples,

you can count both types of batteries in seperate cells and then concatenate them in your desired cell like this:
Code:
=CONCATENATE(Cell_with_C_cells," C and ",Cell_with_D_cells," D Batteries")

or simpler:
Code:
=Cell_with_C_cells&"C and "&Cell_with_D_cells&" D Batteries"

Both will output
8 C and 2 D Batteries

Regards,
Elaszat
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top