Data Organization IF/AND function part type qualification

Liliquestionsxlxs

New Member
Joined
Mar 2, 2022
Messages
17
Office Version
  1. 2021
Platform
  1. Windows
I have this spreadsheet that uses the data from the Unit column to say which part type would that section of the part number be qualified for. As you can see on columns D to N that's the part numbers any of the sections can be qualified for. Some times as you can see in rows 3-12, rows 4-19 and 21-25 sometimes the same section can be qualified for 1 or two other part types.

Each column has an if then equation
Column E=IF(AND($C3>=3,$C3<=5,$C2>=3,$C2<=5),"C-2","")
Column F=IF(AND($C3>=5,$C3<=8,$C2>=5,$C2<=8),"D-2","")
Column G=IF(AND($C3>=8,$C3<=10*1.025,$C2>=8,$C2<=10*1.025),"A-2","")
Column H=IF(AND($C3>=10,$C3<=12,$C2>=10,$C2<=12),"B-2","")
Column I =IF(AND($C3>=3,$C3<=4.5,$C2>=3,$C2<=4.5),"P-10","")
Column J=IF(AND($C3>=8,$C3<=10,$C2>=8,$C2<=10),"P-25","")
Column K=IF(AND($C3>=10,$C3<=12,$C2>=10,$C2<=12),"P-30","")
Column L=IF(AND($C3>=3,$C3<=5,$C2>=3,$C2<=5),"3-1","")
Column M=IF(AND($C3>=5,$C3<=8,$C2>=5,$C2<=8),"5-1","")
Column N=IF(AND($C3>=8,$C3<=10,$C2>=8,$C2<=10),"8-1","")
Column O=IF(AND($C3>=10,$C3<=12,$C2>=10,$C2<=12),"10-1","")

If I keep on using the same IF/AND function row 13,20 and the very last row won't get qualified into any part type.

I know there is a better way to do this and even maybe create 1 single column that I could call "Part Types it Qualified for" and have 1 or more part types the section qualified for in a single cell.

I'm looking for help to get this optimized and make it definitely more efficient.
Thanks!

1649871248454.png
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Your problem lies in where a new batch starts with a lower unit. But I don't understand why the part umber is dependent on the next section of a batch.
 
Upvote 0
How can I make an equation so a single cell is dependent only in its data? For example IF C2 is between 3 and 5 then C-2, or between 5 and 8 then D-2, or between 8 and 10*1.025 then A-2, etc etc
 
Upvote 0
Do you mean:
=IF(C2<3,"Error",IF(C2<=5,"C-2",IF(C2<=8,"D-2",IF(C2<=10.25,"A-2",IF(C2<=12,"B-2","Error")))))
?
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,916
Members
448,533
Latest member
thietbibeboiwasaco

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