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
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
1720113919846.png



The B25=D8 is false and =C25=E8 is flase as well.......thinking this should be true?
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try this in E25:
Excel Formula:
=SUM($G$3:$G$18*(TRIM($D$3:$D$18)=TRIM(B25))*(TRIM($E$3:$E$18)=TRIM(C25)))
 
Upvote 0
Try this in E25:
Excel Formula:
=SUM($G$3:$G$18*(TRIM($D$3:$D$18)=TRIM(B25))*(TRIM($E$3:$E$18)=TRIM(C25)))
Still gave a zero....but I think I found a work around....in B25:43 and C25:43 I copied and pasted the cells from D3:18 and E3:18 so the cells in B25:43 and C25:43 were in the exact same format
 
Upvote 0
Still gave a zero....but I think I found a work around....in B25:43 and C25:43 I copied and pasted the cells from D3:18 and E3:18 so the cells in B25:43 and C25:43 were in the exact same format
That might be a temporary solution, but it might happen again. If you wish to pursue further, we would need to see a copy of your worksheet. You can use DropBox for free of charge.
 
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