Formula for Coding Charges

helopilot

New Member
Joined
Mar 26, 2016
Messages
22
I cant seem to figure out a code to give me what I'm looking for. I want it to look at Colum F for the code, take the amount in Column E and any others with the same code and put the Total Amount in Column H next to the corresponding code. So in this example H1 = $4326.00 H2 = $256.32 and so on. Hope that is clear.

Excel 2010
ABCDEFGH
1TypeTrans DatePost DateDescriptionAmountTypes of ChargeTotal Amount
2Sale4/134/14Charge 1$3,396.00aa
3Sale4/134/14Charge 2$255.33bb
4Sale4/134/14Charge 3$63.51cc
5Sale4/134/15Charge 4$930.00a
6Sale4/124/12Charge 5$0.99b
7Sale4/124/13Charge 6$70.36c
Activity
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Is there a way to use just the entire F Column instead of a range? I never know exactly what the range is going to be and would like to set this up as a template so to speak.
 
Upvote 0
Ok now I need help with Conditional Formatting, I need it to look at Column F and depending on which letter code is present Highlight the corresponding cells in that row to a certain color. IE if F2 is a then Highlight A2:E2 Red.


Excel 2010
ABCDEFGHI
1TypeTrans DatePost DateDescriptionAmountCodeCodeTotal Amount
2Sale4/134/14Chagre 1$3,396.00aa-3396
3Sale4/134/14Chagre 2$255.33bb-255.33
4Sale4/134/14Chagre 3$63.51cc-63.51
5Sale4/134/15Chagre 4$930.00dd-930
6Sale4/124/12Chagre 5$0.99ee-0.99
7Sale4/124/13Chagre 6$70.36ff-70.36
8Sale4/114/12Chagre 7$330.49gg-330.49
Sheet1
Cell Formulas
RangeFormula
I2=SUMIF(F:F,H2,E:E)
 
Upvote 0
First question, how far down the alphabet does this go?

You have down to "g" right now which if you wanted seven different colors would be seven different conditions in CF.

Anyway, for the "a"

Conditional Formatting
  • Highlight applicable range >> =$A$2:$E$8
  • Home Tab >> Styles >> Conditional Formatting
  • New Rule >> Use a formula to determine which cells to format
  • Edit the Rule Description: Format values where this formula is true: =$F2="a"
  • Format… [Number, Font, Border, Fill]
  • OK >> OK
 
Upvote 0
First question, how far down the alphabet does this go?

You have down to "g" right now which if you wanted seven different colors would be seven different conditions in CF.

Anyway, for the "a"

Conditional Formatting
  • Highlight applicable range >> =$A$2:$E$8
  • Home Tab >> Styles >> Conditional Formatting
  • New Rule >> Use a formula to determine which cells to format
  • Edit the Rule Description: Format values where this formula is true: =$F2="a"
  • Format… [Number, Font, Border, Fill]
  • OK >> OK

Not sure just yet how many codes there will be. I think this will work out for now. Thanks again Jeffrey!!
 
Upvote 0

Forum statistics

Threads
1,223,532
Messages
6,172,875
Members
452,486
Latest member
standw01

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