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:

BillySTAFF MEMBER

STOCK NUMBER

PRICE
1111£100
2222£200

TOTAL

£300

<tbody>
</tbody>











BillySTAFF MEMBER

STOCK NUMBER

PRICE
3333£300
4444£400

TOTAL

£700

<tbody>
</tbody>











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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

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