Sum all values depending on offset value

TimClayton

New Member
Joined
Oct 17, 2018
Messages
11
Hi all

I'm not sure how to sum up the nature of my problem, sorry if the heading is confusing. I'll try to keep it as clear as possible.

After some processes, I end up with several tables of data in a sheet in the following format:

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Billy[/TD]
[TD]STAFF MEMBER[/TD]
[/TR]
[TR]
[TD]
STOCK NUMBER[/TD]
[TD]
PRICE[/TD]
[/TR]
[TR]
[TD]1111[/TD]
[TD]£100[/TD]
[/TR]
[TR]
[TD]2222[/TD]
[TD]£200[/TD]
[/TR]
[TR]
[TD]
TOTAL[/TD]
[TD]
£300[/TD]
[/TR]
</tbody>[/TABLE]











[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Billy[/TD]
[TD]STAFF MEMBER[/TD]
[/TR]
[TR]
[TD]
STOCK NUMBER[/TD]
[TD]
PRICE[/TD]
[/TR]
[TR]
[TD]3333[/TD]
[TD]£300[/TD]
[/TR]
[TR]
[TD]4444[/TD]
[TD]£400[/TD]
[/TR]
[TR]
[TD]
TOTAL[/TD]
[TD]
£700[/TD]
[/TR]
</tbody>[/TABLE]











This would carry on down and include 6 other salespeople and their sales.

What I want is a formula that looks for all the "Billy"s and sums all the "Total Price"s. Then I could just copy the formula and change the name to "Linda" and it would show all the sales for her. In my head this would be something like:

Search column A for "SPECIFIC SALESPERSON NAME", then sum all values that are offset by 1,4 from each "SPECIFIC SALESPERSON NAME" found

I just have no idea how to do that... Any help would be greatly appreciated!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Its always 4 cells below the name?? You have to be certain or this isnt going to work but:

=SUMIFS($B$5:$B$104,$A$1:$A$100,C1)

with the name to search for in C1.
 
Upvote 0
Hi Steve

Thanks for the reply. The data I gave was a simplified version of my data. The offset is actually 4,16. But I can just adjust the formula accordingly.

However, I tried your formula on the test data and it doesn't seem to work:

Capture.png


I copied and pasted your formula into C2. I entered the name to search for into C1. Am I missing something?
 
Upvote 0
Yes you can't sum text. £700 looks like it's text. Change it to 700 and then format the cell to currency. The pound sign shouldn't be part of the cell value or it won't sum
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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