"By when you want it completed" vs. "when you want it completed by"

Which of the following is grammatical?

  1. Can you please let me know by when you want it completed.
  2. Can you please let me know when you want it completed by.

I am preferring the latter, but will really appreciate your professional advice.


Solution 1:

In direct and indirect questions, words such as who or when usually move to the front of the clause or sentence that they occur in. Why do I say move? Well, although it is less common, with direct questions you can leave them in the same place that they would be in a standard affirmative sentence:

  • You are going where?
  • You are going when?
  • You are doing what?

Compare this with the typical question forms:

  • Where are you going ?
  • When are you going?
  • What are you doing?

Note that when we move the question word to the front of a direct question we have to reverse the subject and the auxiliary verb. (Sometimes the -wh word will already be at the front: who shot JR: here we won't get any inversion).

Often, the question word will be the complement of a preposition, for example with or by:

  • You're cooking it with what?
  • You're going to finish it by when?

If we want to put questions like this in a normal question form we have a choice: we can either move the preposition and the question word (the complement of the preposition):

  • With what are you cooking it?
  • By when are you going to finish it?

-or you can just move the question word:

  • What are you cooking it with?
  • When are you going to finish it by?

These last examples exemplify what grammarians call 'stranded prepositions'. The reason for this is that the preposition which governs the question word has been left behind at the end of the sentence. There used to be a myth that it was ungrammatical to finish a sentence with a preposition. However, a survey of the greatest and most skilful writers in English will show this to be a lie. Modern grammarians and other linguists have spent years having fun ridiculing this idea.

In your examples, the interrogative phrase is part of an indirect question. The question word here must move to the front of the clause, but whether the preposition goes with it is entirely up to you!

Solution 2:

They're both correct.

Number 1 is perfectly fine, especially for written language. Number 2 is more natural, especially when spoken, or in an informal email. The only thing is that number 2 ends with a preposition, which might be frowned upon by certain people. There's a principle you hear sometimes where ending sentences with prepositions is forbidden. But see for example http://www.oxforddictionaries.com/words/ending-sentences-with-prepositions