Trying to assign subtotal to a specific cell by keyword

lumbernuts

New Member
Joined
Mar 31, 2023
Messages
12
Office Version
  1. 2013
Platform
  1. Windows
Hi, I currently have to manually put the subtotal in the proper category, how would i do the following so if for example it sees "FREEDOM MOBILE" in the description it would automatically assign it to "Cell Phone" column. Thanks.
BankBankBankGSTGSTSource deductionCorporateCorporateVehicleFord CreditHeavyHeavy EquipInsurance forHeavy EquipToolCellOfficeLic, DuesWork
DescriptionWithdrawalsDepositsBalanceRevenueCollectedITC'sarrears/penaltyGST PaymentSubtotal CalculationIncome Tax Payment(provincial)Income Tax Payment(federal)ExpensesPaymentEquipHaulingHeavy EquipMaintainenceFuelSuppliesToolsPhoneServiceExpensesMem.ClothesCell Phone
Balance Forward$ -$ -$ -$ -
FREEDOM MOBILE$ (61.90)$ -$ -$ 2.95$ (58.95)58.95$ 58.95
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi, try this formula in the cells W3 and AB3
=IF(A3="FREEDOM MOBILE",J3,"")

CellPhone.xlsx

CellPhone.png
 
Upvote 0
Hi, thx for the reply, so thats what ive been trying but I just get a blank cell when i plug that in. I should clarify that in J4 I have the formula =B3+G3, not sure if that matters. Some of these columns will have a handful of keywords to look for like for example in the "Tools" category , itll look for 'Home Depot' "Lowes" etc. etc. Not sure if I should set up an index maybe?
 
Upvote 0
Hi, thx for the reply, so thats what ive been trying but I just get a blank cell when i plug that in. I should clarify that in J4 I have the formula =B3+G3, not sure if that matters. Some of these columns will have a handful of keywords to look for like for example in the "Tools" category , itll look for 'Home Depot' "Lowes" etc. etc. Not sure if I should set up an index maybe?
Hi, it would be nice to see the formulas and more rows of your table.
 
Upvote 0
Silvertip Master Sheet 2022.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQ
24 Bank Bank Bank GST GST Source deduction Corporate Corporate Vehicle Ford Credit Heavy Heavy Equip Insurance for Heavy Equip Tool Tool Crane Office Lic, Dues Work Disability Misc.SourceProf.ShareholderCharity
25Date Code Description Withdrawals Deposits Balance Revenue Collected ITC's arrears/penalty GST Payment Subtotal Calculation Income Tax Payment(provincial) Income Tax Payment(federal) Expenses Payment Equip Hauling Heavy Equip Maintainence Fuel Supplies Tools Rentals Maintainence Service Expenses Mem. Clothes Cell Phone Insurance WCBMealsWagesTraveldeductionsMoney martAdvertisingFeesDrawDonationsPersonal tax paymentControl
26Balance Forward$ -$8,389.63$ -$ -$ -$ 8,389.63
2704-Jan-22CWFREEDOM MOBILE$ (61.90)$8,327.73$ -$ -$ 2.95$ (58.95) $ 8,209.83
2804-Jan-22PRREAL CDN. SUPER$ (174.12)$8,153.61$ -$ -$ 8.29$ (165.83)$ 7,821.95
2904-Jan-22OPRECURRING PYMNT 1JAN2022AMAZON.CA ON$ (239.60)$7,914.01$ -$ -$ 11.41$ (228.19)$ 7,457.63
3004-Jan-22CWINTERAC ETRNSFR SENT QB 20220040032F824C4$ (140.00)$7,774.01$ -$ -$ 6.67$ (133.33)$ 7,507.34
PDFTables.com
Cell Formulas
RangeFormula
G26:G30G26=E26/(-1.05)
H26:H30H26=E26+G26
I26:I30I26=D26*(-0.047619047619)
AD27AD27=IF(C3="FREEDOM MOBILE",L3,"")
L27:L30L27=D27+I27
AQ26:AQ30AQ26=SUM(D26:AP26)
 
Upvote 0
Hi, thx alot! Funny thing is ... this works in google sheets but in excel i still get this error message. Using excel 2013. Anyways I can just move it all over to google sheets if needed. Thx again!
Screenshot 2023-04-04 174138.png
 
Upvote 0
Maybe this is why , Excel 2013 wants this formula in a different format??
Screenshot 2023-04-04 174518.png
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,399
Members
449,447
Latest member
M V Arun

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