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

STEFAWN

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

A1B1C1D1E1F1
A2ASC 1ASC 1 $ASC 2ASC 2$Total ASC
A3MGT$0.66 405$0.07 $0.66
A4405$1.34 MGT$0.15 $0.15

<tbody>
</tbody><colgroup><col span="6"></colgroup>

<tbody>
</tbody><colgroup><col></colgroup>
 
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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,215,136
Messages
6,123,249
Members
449,093
Latest member
Vincent Khandagale

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