Can't get multiple criteria for SUMIFS to work like I want

Nanaia

Active Member
Joined
Jan 11, 2018
Messages
304
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
My goal is to modify (or change completely) the formula located in cells V3, W3, X3, Y3 within the CHEATER tab so that they look for the data in both column T and also the number we will enter into cell S3.
What this chart does is count the number of ICP parts needed for each job. I want to make it so I can also identify the total number needed of each kind of ICP parts needed for each elevation not just the job as a whole. I thought I could add a VLOOKUP to the formula but I'm not sure how and what I've tried hasn't worked.
Since I can't easily copy and paste the information into this post, I've saved the file to a Share Drive and provided a link to it below.


https://1drv.ms/x/s!AskYMgFiAqmA0BsSdR9vLkfM18xO
 
Theoretically, yes. However for whatever reason it isn't. If I go in and remove the E in front of all the elevations in col A then they are all counted correctly. If the E isn't removed it doesn't count anything, the results are zeros. Looking more closely at the cells in col A it appears when the CSV's are created there are multiple spaces put at the end of the data. Am I correct in guessing that if there isn't a letter in the cell Excel ignores the extra spaces and if there is a letter Excel has a problem? Any ideas on how I resolve this? I would like to not have to go through up to 600 rows of data to remove the E's. I considered using the LEFT function but the elevations range from 1 digit to 5 or 6. Sometime is has letters, sometimes it doesn't.
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
In an empty cell put
=CODE(RIGHT(A9))
where A9 is a cell with the extra spaces at the end, what dose the formula return?
 
Upvote 0
A9 contains E12 with twelve spaces at the end of it.

The results of your formula is 32.
 
Last edited:
Upvote 0
In that case you can select the entire column > Ctrl H > in find what put a space > leave the replace with empty > Replace all
 
Upvote 0
To clarify, I would need to use find/replace to remove all the spaces in order for that formula to work. Correct?
My coworkers will not understand this. They understanding cutting and pasting the CSV into the CSV tab but not much else when working with Excel. If I make it too complicated for them they will refuse to use the spreadsheet.
Are there any other options or work arounds?
 
Upvote 0
You could use
REF!$A$3:$A$500,$S$3&"*"

BUT if S3 is E21, it will count E21 along with E210, E211 etc
How is the data getting from the CSV sheet to the REF sheet
 
Upvote 0
The data is getting from the CSV to the REF sheet by =CSV!A9 on the REF sheet.
I tried changing the original formula that you helped me develop and have it look directly as the CSV sheet instead of the REF sheet but got the same results so I switched it back to looking at the REF sheet to keep it consistent by having all formulas in that table pulling data from the same sheet.
 
Upvote 0
In that case change the formula to
=TRIM(CSV!A9)
 
Upvote 0
WOOT! And you show your excellent skills once again! That made it work properly. Thank you!
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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