Multipy the number of cells with any text (ie Names) by another cell with a number (ie Dollar value)

Moaman

New Member
Joined
Apr 23, 2022
Messages
10
Office Version
  1. 2021
Platform
  1. Windows
Hi, I am working out the cost of putting people on training courses . I have a list with peoples names in some cells in this list and other cells in the same list are blank. Then above the list is the course cost in dollars. I need a formular ignor blank cells and to "see" that a list has different text (i.e. Names) in cells and then multiply those with the course cost in the cell above the list. I tried =IF(ISTEXT(K31:K42),1,(*K29)) but just got a SPILL error back. I think I'm nearly there but if anyone can advise I be very grateful.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi Moaman,

If I understand correctly, you want the course cost multiplied by the number of names in the list. Try this formula:

Excel Formula:
=COUNTIF(K31:K42,"*")*K29

I hope that helps,

Doug
 
Upvote 0
Hi Moaman,

If I understand correctly, you want the course cost multiplied by the number of names in the list. Try this formula:

Excel Formula:
=COUNTIF(K31:K42,"*")*K29

I hope that helps,


Hi Doug,
Thanks so much that is perfect. Your a Ledgend.
 
Last edited by a moderator:
Upvote 0
Haha, many here have much more knowledge than me. Glad to help.
 
Upvote 0
If that one works for you then so should this
Excel Formula:
=COUNTA(K31:K42)*K29
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,338
Members
449,155
Latest member
ravioli44

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