How do I get a formula to change its value and divide by a certain number depending on the text in another column?

Pulpboi

New Member
Joined
Aug 4, 2021
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
I am calculating quarterly expenditures vs monthly and yearly expenditures. I am looking for a formula that will take the total in column AK (2022), and divide the total either quarterly, monthly, or once a year, depending on the text in column AJ. This is a weird one. Basically, I am trying to capitalize expenditures. I was tasked with finding a formula that will divide the total expenditure cost by the text in column AJ. So if it’s quarterly, I would want the total in column AK divided by 4 in 4 different cells. If the text changes, I want the formula to automatically change the values in the columns Al-AQ and maybe give me an error if it changes? The problem I’m running in to is people keep changing the text in AJ, and I can’t catch it because I am doing it manually right now. I can explain more if needed.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Mr Excel Playground 3.xlsm
ABCDEF
1UnitNumberExpensesQuarterly
2Weekly52$50,000Payments
3Monthly12$51,000$350,750
4Quarterly4$52,000$350,750
5Yearly1$53,000$350,750
6$54,000$350,750
7$55,000
8$56,000
9$57,000
10$58,000
11$59,000
12$60,000
13$61,000
14$62,000
15$63,000
16$64,000
17$65,000
18$66,000
19$67,000
20$68,000
21$69,000
22$70,000
23$71,000
24$72,000
25
Sheet7
Cell Formulas
RangeFormula
F3:F6F3=ROW(INDIRECT("1:"&VLOOKUP(F1,Table2,2,FALSE)))*0+SUM(Table1[Expenses])/VLOOKUP(F1,Table2,2,FALSE)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
F1List=$A$2:$A$5
 
Upvote 0
Hi and welcome to MrExcel,

Your cell references do not make sense to me. You seem to be saying that some text is being changed in AJ2 but you want the results in Column AI-AQ which includes AJ. In any case we cannot see what the column is or what it would do. That could probably all be resolved, & make it easy for us to use your sample data, with the below information.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Providing data and samples in this manner helps us helping you without having to assume or guess what you're trying to accomplish.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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