Add rows in table up to a changeable point with a Vlookup

LostBees

New Member
Joined
Apr 15, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I have a table (in image) that I have different amounts in. I need to be able to input the first thing to look at in A2 and the second in B2 and then the number across in C2 and then in D2 I need it to give me the total of the items up uptil that point.

So if I enter Fish Salmon and 3 it would need to show in D2 as £1.55 as that is everything in the row up until number 3.

If I enter Potato Fries and 4 it would be £1.62

I have added in the conjoined items on the left in column A as i was using a combined V lookup and I can get it to give me the figure from column 3 in that table but I cant get it to give me the total of 1 2 and 3.

Any help much appreciated!
 

Attachments

  • lookup.PNG
    lookup.PNG
    23.4 KB · Views: 7

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
The first thing to do would be to get rid of merged cells in col B replacing with the string in each cell
 
Upvote 0
The first thing to do would be to get rid of merged cells in col B replacing with the string in each cell
Unfortunately this is for a presentation so that is the way I have to format it :(
 
Upvote 0
Mine was a silly question as you have Office 365 and thus PQ. Sorry :confused:
 
Upvote 0

Forum statistics

Threads
1,214,994
Messages
6,122,633
Members
449,092
Latest member
bsb1122

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