Looking to easily sum up the total per room

DavidPonnet

New Member
Joined
Mar 16, 2017
Messages
23
Hello,

I will try to explain the following problem as good as possible.

In the first column, there is the name of a room combined with the number to a case (fe. R01-V02 / R05-V01 etc )

Sometimes more then 1 case per room.

I would like to make totals for each room, based on the room number (so part of the information.) R01 / R02 etc

Would it be possible to easily make such a formula ? (I need to have the sum of different columns)

R01-V015000 €250 h100 h
R01-V027500 €300 h125 h
R02-V011200 €100 h50 h
R02-V021500 €125 h60 h
R02-V032500 €180 h100 h

<tbody>
</tbody>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hello,

I will try to explain the following problem as good as possible.

In the first column, there is the name of a room combined with the number to a case (fe. R01-V02 / R05-V01 etc )

Sometimes more then 1 case per room.

I would like to make totals for each room, based on the room number (so part of the information.) R01 / R02 etc

Would it be possible to easily make such a formula ? (I need to have the sum of different columns)

R01-V015000 €250 h100 h
R01-V027500 €300 h125 h
R02-V011200 €100 h50 h
R02-V021500 €125 h60 h
R02-V032500 €180 h100 h

<tbody>
</tbody>

Maybe I have this backwards, but are you talking about summing each unit column by room? i.e. 3rd column total for R01 is 225?
If so, could you not have R01, R02 etc in a list/table then combine left function with sumif?
 
Upvote 0
Maybe I have this backwards, but are you talking about summing each unit column by room? i.e. 3rd column total for R01 is 225?
If so, could you not have R01, R02 etc in a list/table then combine left function with sumif?

That is correct, but the left colum cannot be changed. Is it possble to have a "sumif" formula with only part of a cell value ?
 
Upvote 0
That is correct, but the left colum cannot be changed. Is it possble to have a "sumif" formula with only part of a cell value ?

I was thinking so when I typed this, but now not thinking how........without adding a column.
Can you add a column beside the room column, do left(A1,3) to get room only in that new column, then use that for your sumif?
 
Upvote 0
Hi,

Assuming your data is in A1:D5 and the list of rooms (R01, R02... ) is in H1:H5, try this formula in I1 for sum of column B for R01

=SUMIF($A$1:$A$5,"="&$H1&"*",B$1:B$5)

This will return I1=12500. Copy the same for other cells.

Hope this helps.
Regards.
 
Upvote 0
Hi,

Assuming your data is in A1:D5 and the list of rooms (R01, R02... ) is in H1:H5, try this formula in I1 for sum of column B for R01

=SUMIF($A$1:$A$5,"="&$H1&"*",B$1:B$5)

This will return I1=12500. Copy the same for other cells.

Hope this helps.
Regards.

that worked ! thx !!!
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,718
Members
448,986
Latest member
andreguerra

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