Row Column Index Match - Sum amount when data contains a match

STEFAWN

New Member
Joined
Feb 16, 2017
Messages
13
[TABLE="width: 618"]
<tbody>[TR]
[TD]Hello,[/TD]
[/TR]
[TR]
[TD]I am trying to find the sum of all charges that contain text "MGT"[/TD]
[/TR]
[TR]
[TD]In Column F3 ($0.66) and F4 ($0.15) are the correct amounts I want the formula to add.[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]The formula I am using is =IF(OR(B3=MGT,D3=MGT),SUM(C3,E3)C3+E3)[/TD]
[/TR]
[TR]
[TD]This is totaling both columns but I want it to return the value that contains MGT only.[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD]Thanks

[TABLE="width: 426"]
<tbody>[TR]
[TD]A1[/TD]
[TD]B1[/TD]
[TD]C1[/TD]
[TD]D1[/TD]
[TD]E1[/TD]
[TD]F1[/TD]
[/TR]
[TR]
[TD]A2[/TD]
[TD]ASC 1[/TD]
[TD]ASC 1 $[/TD]
[TD]ASC 2[/TD]
[TD]ASC 2$[/TD]
[TD]Total ASC[/TD]
[/TR]
[TR]
[TD]A3[/TD]
[TD]MGT[/TD]
[TD]$0.66 [/TD]
[TD]405[/TD]
[TD]$0.07 [/TD]
[TD]$0.66 [/TD]
[/TR]
[TR]
[TD]A4[/TD]
[TD]405[/TD]
[TD]$1.34 [/TD]
[TD]MGT[/TD]
[TD]$0.15 [/TD]
[TD]$0.15 [/TD]
[/TR]
</tbody><colgroup><col span="6"></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 
The formula worked.
Thank you very much for your responses; I love the turnaround time and the detailed feedback. This site has so many references and information- it's my new favorite place to read! :)
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
You are welcome. Glad it does the job. Thank you for the feedback and kind words.

This site has so many references and information- it's my new favorite place to read!

Yes. Me too. These forums have become an addiction! LOL
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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