Sum values depending in values next column

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

In one column I have the rates of different hotels, and in the next column I
have the names of the hotels. How can I sum all values for each hotel without
using Filter (this does not update automatically)?

Thanks and regards

Luis Serpa
 
Hi

One way
=SUMIF(B:B,"Hotel_required",A:A)

Better still, put the names of the hotels you want in say C1:C5 and
enter in D1
=SUMIF(B:B,C1,A:A)
Copy down through D2:D5
 
luiss said:
Hi,

In one column I have the rates of different hotels, and in the next
column I
have the names of the hotels. How can I sum all values for each hotel
without
using Filter (this does not update automatically)?

Thanks and regards

Luis Serpa

This is probably what you need:

=SUMPRODUCT((A1:A100)*(B1:B100=\"HOTEL NAME\")

where

A1:A100 is the column that contains the different hotel rates AND
B1:B100 is the column that contains the different hotel names.

NOTE: Modify your column range to suit your needs.

Regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top