Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have Column C that contains about 110 different material groups EX, BC1,FF1,FF3,FD1, ext upto 110. I want to create a formula in B, which this is Sample: =IF(OR(C:C="FI1",C:C="FI2",C:C="FM1"),"NAME1",IF(O R (C:C="FX5",C:C="FX6",C:C="FXC",C:C="FXR"),"NAME2", IF(OR (C:C="FV1"),"NAME3",IF(OR(C:C="BC3",C:C="FV5"),"NA ME4")))) It works fine but when I add more IF(OR i get an error. I'm able to have just 7-8 IF(OR so is this the Max in a Cell? I think I need about 24 IF(OR . The file that I open might not include all groups, but changes. So my data file might contain some groups this month but not all. So when I do the formula, I want to be able to look for all groups. Any help would be very greateful. Thanks, JUAN |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My recommendation would be to use a VLOOKUP formula. First
you must create a table that maps a name to each Material group, something like (on Sheet2): A B 1 FI1 NAME1 2 FI2 NAME1 3 FM1 NAME1 4 FX5 NAME2 5 FX6 NAME2 6 FXC NAME2 Then use: =VLOOKUP(A1,Sheet2!A:B,2,0) HTH Jason Atlanta, GA -----Original Message----- Hello, I have Column C that contains about 110 different material groups EX, BC1,FF1,FF3,FD1, ext upto 110. I want to create a formula in B, which this is Sample: =IF(OR(C:C="FI1",C:C="FI2",C:C="FM1"),"NAME1",IF( OR (C:C="FX5",C:C="FX6",C:C="FXC",C:C="FXR"),"NAME2" ,IF(OR (C:C="FV1"),"NAME3",IF(OR(C:C="BC3",C:C="FV5"),"N AME4")))) It works fine but when I add more IF(OR i get an error. I'm able to have just 7-8 IF(OR so is this the Max in a Cell? I think I need about 24 IF(OR . The file that I open might not include all groups, but changes. So my data file might contain some groups this month but not all. So when I do the formula, I want to be able to look for all groups. Any help would be very greateful. Thanks, JUAN . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Jason,
thanks. I did a test and seems to work. Now what would be the easy way to add this sheet to my other file? I'm trying to do Macros and stuff so that users dont' do much. Users will download a file from our system and then run the macro. Since this VLOOK table will be in another file, I want to copy this shee to the file that users download using a macro. Please advise if you have any idea. Thanks for your help, juan -----Original Message----- My recommendation would be to use a VLOOKUP formula. First you must create a table that maps a name to each Material group, something like (on Sheet2): A B 1 FI1 NAME1 2 FI2 NAME1 3 FM1 NAME1 4 FX5 NAME2 5 FX6 NAME2 6 FXC NAME2 Then use: =VLOOKUP(A1,Sheet2!A:B,2,0) HTH Jason Atlanta, GA -----Original Message----- Hello, I have Column C that contains about 110 different material groups EX, BC1,FF1,FF3,FD1, ext upto 110. I want to create a formula in B, which this is Sample: =IF(OR(C:C="FI1",C:C="FI2",C:C="FM1"),"NAME1",IF (OR (C:C="FX5",C:C="FX6",C:C="FXC",C:C="FXR"),"NAME2 ",IF(OR (C:C="FV1"),"NAME3",IF(OR (C:C="BC3",C:C="FV5"),"NAME4")))) It works fine but when I add more IF(OR i get an error. I'm able to have just 7-8 IF(OR so is this the Max in a Cell? I think I need about 24 IF(OR . The file that I open might not include all groups, but changes. So my data file might contain some groups this month but not all. So when I do the formula, I want to be able to look for all groups. Any help would be very greateful. Thanks, JUAN . . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could create a UserForm that has all the choices hard
coded into a drop down list. After the user selects a desired item a routine would be run to go to the next step in the process. For example: Private Sub UserForm_Initialize() FORM_One.cmbTable.AddItem "Choice1" FORM_One.cmbTable.AddItem "Choice1" FORM_One.cmbTable.AddItem "Choice1" End Sub Private Sub cmbTable_Click() Whatever you want to happen after they make a selection. End Sub You'll have to look into adding forms and controls. Hope this helps, Raul -----Original Message----- Hello Jason, thanks. I did a test and seems to work. Now what would be the easy way to add this sheet to my other file? I'm trying to do Macros and stuff so that users dont' do much. Users will download a file from our system and then run the macro. Since this VLOOK table will be in another file, I want to copy this shee to the file that users download using a macro. Please advise if you have any idea. Thanks for your help, juan -----Original Message----- My recommendation would be to use a VLOOKUP formula. First you must create a table that maps a name to each Material group, something like (on Sheet2): A B 1 FI1 NAME1 2 FI2 NAME1 3 FM1 NAME1 4 FX5 NAME2 5 FX6 NAME2 6 FXC NAME2 Then use: =VLOOKUP(A1,Sheet2!A:B,2,0) HTH Jason Atlanta, GA -----Original Message----- Hello, I have Column C that contains about 110 different material groups EX, BC1,FF1,FF3,FD1, ext upto 110. I want to create a formula in B, which this is Sample: =IF(OR(C:C="FI1",C:C="FI2",C:C="FM1"),"NAME1",I F(OR (C:C="FX5",C:C="FX6",C:C="FXC",C:C="FXR"),"NAME 2",IF(OR (C:C="FV1"),"NAME3",IF(OR (C:C="BC3",C:C="FV5"),"NAME4")))) It works fine but when I add more IF(OR i get an error. I'm able to have just 7-8 IF(OR so is this the Max in a Cell? I think I need about 24 IF(OR . The file that I open might not include all groups, but changes. So my data file might contain some groups this month but not all. So when I do the formula, I want to be able to look for all groups. Any help would be very greateful. Thanks, JUAN . . . |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"JUAN" wrote in message
... Hello, I have Column C that contains about 110 different material groups EX, BC1,FF1,FF3,FD1, ext upto 110. I want to create a formula in B, which this is Sample: =IF(OR(C:C="FI1",C:C="FI2",C:C="FM1"),"NAME1",IF(O R (C:C="FX5",C:C="FX6",C:C="FXC",C:C="FXR"),"NAME2", IF(OR (C:C="FV1"),"NAME3",IF(OR(C:C="BC3",C:C="FV5"),"NA ME4")))) It works fine but when I add more IF(OR i get an error. I'm able to have just 7-8 IF(OR so is this the Max in a Cell? Yes - a maximum of 7 nested IF functions in one formula. Check out: http://www.cpearson.com/excel/nested.htm |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks all for the help.
Juan -----Original Message----- "JUAN" wrote in message ... Hello, I have Column C that contains about 110 different material groups EX, BC1,FF1,FF3,FD1, ext upto 110. I want to create a formula in B, which this is Sample: =IF(OR(C:C="FI1",C:C="FI2",C:C="FM1"),"NAME1",IF(O R (C:C="FX5",C:C="FX6",C:C="FXC",C:C="FXR"),"NAME2", IF(OR (C:C="FV1"),"NAME3",IF(OR (C:C="BC3",C:C="FV5"),"NAME4")))) It works fine but when I add more IF(OR i get an error. I'm able to have just 7-8 IF(OR so is this the Max in a Cell? Yes - a maximum of 7 nested IF functions in one formula. Check out: http://www.cpearson.com/excel/nested.htm . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is there a maximun number of cells allowed in a name range? | Excel Worksheet Functions | |||
Maximun number of hyperlinks in Excel | Excel Discussion (Misc queries) | |||
width at the hlaf maximun peak | Charts and Charting in Excel | |||
Maximun number of rows and columns | Excel Discussion (Misc queries) | |||
Using 2 IF statements for the same cell | Excel Discussion (Misc queries) |