Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drag and drop in Excel 2

Status
Not open for further replies.

Matt27

MIS
Jun 2, 2004
59
GB
I have a spreadsheet where the user has a client code and a client name. He has filled in the first cell, for example client code 123 client name ABC. He then wants to have this client information in the next few rows. When he drags it down the client name remains ABC but the client code increments, i.e. 124, 125, 126, etc. Is there any way of using the drag and drop function without it incrementing the numbers??
 
Instead of using the left mouse button, use the right to drag to where he wants, then select the Copy Cells from the item menu which should automatically open up.
 
Thanks for that, but is there any way of avoiding copy and paste. Ideally what I want to happen is for the user to be able to drag and drop but for the values not to increment. I know that you can do this by holding the CTRL key and doing it but is there no way of, say, "turning it off" so the numbers don't increment?
 
How is the number being entered?

If you store the number as text, then it does increment (bizarre eh?), but if you just enter a single number and drag it down then it maintains the integrity - i.e. does not increment.

But it only works if you drag down a single number.
 
press alt key at same time - hunky dory !

Laters, phat, headshape
 
btw - this will cause it to happen on all drag cells (no need to press key after), if you need to change back then press ctrl at same time

Laters, phat, headshape
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top