SUMIFS with MID and RIGHT as lookups

LEWI_74

New Member
Joined
Apr 24, 2008
Messages
46
Hi,
I hope someone can help.

I have some dowmloaded data in the following columns:
Column B: 13 number and letter code e.g. F20110000U340 (the code in red can change as can the last 4 digits coloured in blue - thus are key variables)
Column E: The base amount for that particular transaction.

I have used the Function button to check my formula and it appears correct in each of the boxes but there is no value after the = sign in the grey function box.

I want to use SUMIFS on a summary table based on different numbers in RED and BLUE and I have so far:

=SUMIFS(E:E,RIGHT(B:B,4),"U340",MID(B:B,5,5),"10000")

I hope it is something relatively straight forward.

Many thanks

David
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi,
I hope someone can help.

I have some dowmloaded data in the following columns:
Column B: 13 number and letter code e.g. F20110000U340 (the code in red can change as can the last 4 digits coloured in blue - thus are key variables)
Column E: The base amount for that particular transaction.

I have used the Function button to check my formula and it appears correct in each of the boxes but there is no value after the = sign in the grey function box.

I want to use SUMIFS on a summary table based on different numbers in RED and BLUE and I have so far:

=SUMIFS(E:E,RIGHT(B:B,4),"U340",MID(B:B,5,5),"10000")

I hope it is something relatively straight forward.

Many thanks

David
You can't "manipulate" the criteria ranges when using the SUMIF(S) function(s).

Maybe this...

=SUMIF(B:B,"*10000U340",E:E)
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,421
Members
452,913
Latest member
JWD210

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