VLOOKUP? or another formula?

kimberlie3

New Member
Joined
Jan 12, 2023
Messages
11
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
I have a spreadsheet that I am trying to automate to make things easier. This is a spreadsheet that will have additional rows added that I am looking to auto populate. This is what I am doing:

1. populating a column with pretax amount by using formula (matching-sales tax)

2. Then previously I was using formulas to get the total spent for each FCN/Line but would manually have to go in and use the sum formula for each FCN/Line

Is there a way I can make this simple? I attached a photo of an example and what I am looking to do. The green section is what it would look like if I did it manually, but after a few months, I usually have a few hundred rows or more and can be time consuming doing it manually.

Any help would be greatly appreciated!!
 

Attachments

  • excel example.JPG
    excel example.JPG
    190.9 KB · Views: 13

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Try this in E25:
Excel Formula:
=SUMIFS($G$3:$G$18,$D$3:$D$18,B25,$E$3:$E$18,C25)
 
Upvote 0
Try this in E25:
Excel Formula:
=SUMIFS($G$3:$G$18,$D$3:$D$18,B25,$E$3:$E$18,C25)
it only worked for rows E32-43, the E25-31 all populated as 0s where E25 should be 1505.42, E26 164.50 and so on....
 
Upvote 0
The 0's suggest that there are no matches found. The common cause is that there are extra spaces in the cells and you can't visibly see. Can you post your data in a copy-able format for testing? Preferably using XL2BB.
 
Upvote 0
2024-2025 Budgets.xlsx
ABCDEFGHIJKLM
2Transaction AmountSales Tax Amount (GST)Matching AmountFCNLineG/L Pre-tax
3367.37354.99367.3740009823066500888512.38
43,945.20493.793,795.704000982307630030103,301.91
53,945.2019.50149.50400098230265400000130.00
6282.1936.81282.194000982301265300055245.38
791.9812.0091.98400098230116530002079.98
8278.8636.37278.86400098230165200200242.49
9139.091.058.044000982301652002006.99
10288.0637.57288.06400098230365200210250.49
111,245.450.0034.5040009823026540000034.50
121,245.450.001,210.954000982301652002001,210.95
1317.192.2417.1940009823046500209014.95
1451.746.7551.7440009823016520020044.99
15245.000.00245.00400105412265009020245.00
16105.000.00105.00400105412165009030105.00
17219.426.34156.034001036231165000000149.69
181,839.99240.001,839.994001063711653000151,599.99
19
20
21
22Commitments
23
24G/L FCNLine NumberSO#Total SpentExampleG/L FCNLine NumberSO#Total Spent
2565200200 40009823017065200200 400098230171,505.42
2665400000 400098230 2R021065400000 400098230 2R021164.50
2765200210 400098230 37065200210 400098230 37250.49
2865002090 400098230 43065002090 400098230 4314.95
2965200165 400098230 57065200165 400098230 57
3065008885 400098230 64065008885 400098230 6412.38
3163003010 400098230 76063003010 400098230 763,301.91
3265005030 40009823085065005030 40009823085
3365200041 4000982309R112A065200041 4000982309R112A
3465200190400098230107065200190400098230107
356530002040009823011979.986530002040009823011979.98
3665300055400098230129245.3865300055400098230129245.38
3765200180400098230137065200180400098230137
3863003010400098230146063003010400098230146
3965009030400105412141056500903040010541214105.00
4065009020400105412242456500902040010541224245.00
41650086354001061361406500863540010613614
4265300015400106371191599.9965300015400106371191,599.99
436500000040010362311R021149.696500000040010362311R021149.69
44
Sheet9
Cell Formulas
RangeFormula
G3:G18G3=C3-SUM(B3:B3)
L25L25=SUM(G8+G9+G12+G14)
L26L26=G11+G5
L27L27=G10
L28L28=G13
L30:L31L30=G3
L35L35=G7
L36L36=G6
L39L39=G16
L40L40=G15
E25:E43E25=SUMIFS($G$3:$G$18,$D$3:$D$18,B25,$E$3:$E$18,C25)
L42L42=G18
L43L43=G17
 
Upvote 0
When I paste your mini-sheet into my workbook, it works fine so I don't have a clue why it's not on yours.
Book1
ABCDEFGHIJKLM
2Transaction AmountSales Tax Amount (GST)Matching AmountFCNLineG/L Pre-tax
3367.37354.99367.3740009823066500888512.38
43945.2493.793795.74000982307630030103301.91
53945.219.5149.5400098230265400000130
6282.1936.81282.194000982301265300055245.38
791.981291.98400098230116530002079.98
8278.8636.37278.86400098230165200200242.49
9139.091.058.044000982301652002006.99
10288.0637.57288.06400098230365200210250.49
111245.45034.540009823026540000034.5
121245.4501210.954000982301652002001210.95
1317.192.2417.1940009823046500209014.95
1451.746.7551.7440009823016520020044.99
152450245400105412265009020245
161050105400105412165009030105
17219.426.34156.034001036231165000000149.69
181839.992401839.994001063711653000151599.99
19
20
21
22Commitments
23
24G/L FCNLine NumberSO#Total SpentExampleG/L FCNLine NumberSO#Total Spent
2565200200400098230171505.4265200200400098230171505.42
26654000004000982302R021164.5654000004000982302R021164.5
276520021040009823037250.496520021040009823037250.49
28650020904000982304314.95650020904000982304314.95
29652001654000982305706520016540009823057
30650088854000982306412.38650088854000982306412.38
3163003010400098230763301.9163003010400098230763301.91
32650050304000982308506500503040009823085
33652000414000982309R112A0652000414000982309R112A
3465200190400098230107065200190400098230107
356530002040009823011979.986530002040009823011979.98
3665300055400098230129245.3865300055400098230129245.38
3765200180400098230137065200180400098230137
3863003010400098230146063003010400098230146
3965009030400105412141056500903040010541214105
4065009020400105412242456500902040010541224245
41650086354001061361406500863540010613614
4265300015400106371191599.9965300015400106371191599.99
436500000040010362311R021149.696500000040010362311R021149.69
44
Sheet7
Cell Formulas
RangeFormula
G3:G18G3=C3-SUM(B3:B3)
L25L25=SUM(G8+G9+G12+G14)
L26L26=G11+G5
L27L27=G10
L28L28=G13
L30:L31L30=G3
L35L35=G7
L36L36=G6
L39L39=G16
L40L40=G15
E25:E43E25=SUMIFS($G$3:$G$18,$D$3:$D$18,B25,$E$3:$E$18,C25)
L42L42=G18
L43L43=G17
 
Upvote 0
That is so strange! I also tried the formula in other sheets and getting the same issue but if I copy your sheet, it shows the correct sums....could it be a cell format issue do you think?
 
Upvote 0
In some convenient blank cells,say I3 and J3, try this
Excel Formula:
=LEN(D3:D18)=LEN(TRIM(D3:D18))

and
Excel Formula:
=LEN(E3:E18)=LEN(TRIM(E3:E18))

What do they return?
 
Upvote 0
Ok, that's expected.
Try to do the same formulas but for B and C 25-43.
Then check:
Excel Formula:
=B25=D8
and
Excel Formula:
=C25=E8
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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