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
 
I had the cell # off by one but it still gives me the same error
Screenshot 2023-04-04 180003.png
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Excel 2013 has it as "logical test" and then sheets has it as "logical expression"
 
Upvote 0
I finally got it ! by using this formula, =IF(C27="FREEDOM MOBILE",L27,0) but you def led me down thr right path thx !
 
Upvote 0
Hi, try this formula in Excel 3013
=IF(C26="FREEDOM MOBILE",L26,"")
 
Upvote 0
The formula changes automatically after downloading
from =IF(C26="FREEDOM MOBILE";L26;"")
to =IF(C26="FREEDOM MOBILE",L26,"")
 
Upvote 0
Now if I want to add multiple keywords to the formula, how could i do that? Ive tried using comma, semi colon, quotations
 
Upvote 0
The formula is for 3 more keywords
=IF(OR(C26="FREEDOM MOBILE",C26="KEYWORDS1",C26="KEYWORDS2",C26="KEYWORDS3"),L26,"")
 
Upvote 0
Solution
Hi, I am very glad that the formula works.
If I have enough knowledge, I am happy to help at any time.
 
Upvote 0

Forum statistics

Threads
1,216,069
Messages
6,128,599
Members
449,460
Latest member
jgharbawi

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