You've entered too many arguments for this function

meppwc

Well-known Member
Joined
May 16, 2003
Messages
636
Office Version
  1. 365
Platform
  1. Windows
I have a formula that continues to return the same error message -- "You've entered too many arguments for this function"

I cannot understand what is wrong. The formula captures 15 cells (A2 through O2). All of the cells are "General" in format. Can someone please advise me of my error?

=CONCATENATE("insert into reject_assignment values (",A2,",'",B2,"','",C2,"','",D2,"','",E2,"','",F2,"','",G2,"','",H2,"','",I2,"','",J2,"','",K2,"','",L2,"','",M2,"','",N2,"','",O2,");")

If I remove cell O2, then it works.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Is that your exact formula?

If it is I don't think you've got the syntax right.

What exactly are you trying to concatenate?

PS Why the single quotes?
 
Upvote 0
CONCATENATE() is limited to 30 items and you have 31. Try using just:

="insert into reject_assignment values ("&A2&",'"&B2&",'"&....etc
 
Upvote 0
Reply

Thanks for the assistance provide thus far..........the problem that I have is that I need to keep the "," in this statement because I need the comma as a delimiter to seperate each cell.

Is there anyway that this arguement can be written where as I don't have to place this delimiter in between each cell that is part of the overall arguement?
 
Upvote 0
Redefine the Problem

Sorry...........it is probably me missing the boat here. Let me provide a better example of what i am trying to achieve and what my end result is and needs to be...........

Because of the 30 argument restraint, I am ending up the what you see below when my overall equation hits 31. (Notice that the "O2" at the end should really be an asterik - *, which is the value witin the O2 cell.

insert into reject_assignment values (0,'MO','4761','*','*','*','*','*','*','*','*','*','*','*',',O2,');

It needs to look like this when all is said and done

insert into reject_assignment values (0,'MO','4761','*','*','*','*','*','*','*','*','*','*','*','*',);
 
Upvote 0
If the problem is the 30 argument constraint then don't use CONCATENATE just use &.
 
Upvote 0

Forum statistics

Threads
1,226,350
Messages
6,190,455
Members
453,610
Latest member
tchung5

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