in SUM condition needs to check for a name and its variation. "*" ?

nahaku

Board Regular
Joined
Mar 19, 2020
Messages
106
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
=SUMIFS(Table4[PCS],Table4[staff],IFS(Table4[staff]=$BP57,$BP57,Table4[staff]="GRS-"&$BP57,"GRS-"&$BP57),Table4[data_source],"GRS")
with this function I will get long array with same numbers, not one number as SUM. It seems like it is just suming all numbers if it is the condition True, not as one :{

I have a column of names where the names are like ABC54646 and sometime it is with GRS-ABC54646, Normaly I would use power query to get rid of it, but I do not want to add aditional tabels as this file will have too many of them already because it will be monthly summary.

Firstly I wanted use just "*" before Cell reference but It then cant look up somethink like ....ABC54646 it would look up "*$BP7" and of course it fails....
Any suggestions?
 
Well I found on internet solution just to use simple + :P
=SUMIFS(Table4[PCS],Table4[staff],"GRS-"&$BP54,Table4[data_source],"GRS")+SUMIFS(Table4[PCS],Table4[staff],$BP54,Table4[data_source],"GRS")
I will go with this
 
Upvote 0

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Well I found on internet solution just to use simple + :P
=SUMIFS(Table4[PCS],Table4[staff],"GRS-"&$BP54,Table4[data_source],"GRS")+SUMIFS(Table4[PCS],Table4[staff],$BP54,Table4[data_source],"GRS")
I will go with this
If you are happy that is fine but I don't know what $BP54 is, and it looks a more complicated approach than what I suggested. :confused:
 
Upvote 0

Forum statistics

Threads
1,214,963
Messages
6,122,484
Members
449,088
Latest member
Melvetica

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