Need Assistance with Spreadsheet Formula

wgregoryjr

New Member
Joined
Nov 21, 2017
Messages
2
Fairly new to excel. Wanted to know if it is possible to have a formula that looks at a particular column for specific value (i.e. City Name) and for every instance of that it would display a value in another cell on that same row.

For example:

Each row has the following fields: Date, Name, Location, Total
I'm wanting to know if anywhere in the worksheet in the Location column if 'New York' is present , can you have it add up the values in the 'Total' cells.

[TABLE="width: 489"]
<colgroup><col width="110"><col width="180"><col width="145"><col width="54"></colgroup><tbody>[TR]
[TD="class: xl64, width: 110"]Date:[/TD]
[TD="class: xl65, width: 180"]Name:
[/TD]
[TD="class: xl65, width: 145"]Location:
[/TD]
[TD="class: xl65, width: 54"]Total:
[/TD]
[/TR]
</tbody>[/TABLE]
Nov 21 Test 1 New York 5
Nov 22 Test 2 California 4
Nov 23 Test 3 New York 6
Nov 24 Test 4 Florida 3
Nov 25 Test 5 Texas 7
Nov 26 Test 6 New York 8

so since there are 3 instances of New York in the 'Location' column, I want to have it add up the 5, the 6, and the 8 so the cell with formula would display 19.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Have a look at the SUMIF function in Excel Help.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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