Excel Hints & Tips - Mixing Absolute + Relative mode
How do you record a macro that will copy data from a set area on your spread sheet and then paste it into the first available empty row, in an ever increasing list?
Hi, we are Happy
We are leading a movement to create happy, empowered and productive workplaces.
How can we help you and your people to find joy in at least 80% of your work?
In the example below our data is imported into an area of our spread sheet in column B – the Sales Order Form (in yellow). We then wish to copy this data from the yellow area and transpose it as a new record in the first available empty row below any existing records – with the blue field headings in row 2.
Step 1: Start your macro recorder with the setting set to Absolute mode
Step 2: Select the cells to be transposed – cells B3:B11
Step 3: Copy into system memory (Ctr+C)
Step 4: Select the first cell in the existing table where the record is to be transposed – cell E2
Step 5: Move the cursor down to the last record – press Ctr+ (down cursor)
Step 6: Switch the recording to Relative mode
Step 7: Click into the empty cell immediately below (in this example this happens to be E6)
Step 8: Choose, Home à Paste à Transpose (as below)
Step 8: Press Escape
Step 9: Stop Recoding
So by starting at the top of the table and using the Ctr+down-key (in Absolute mode) followed by a switch to Relative mode and then clicking one cell lower, the replay is always able to locate the first empty row wherever it happens to be!
- Using Absolute Cell References in Excel - What exactly IS an Absolute Cell Reference. Jonny breaks down the basics simply in this guide.
- How to Create Partial Absolute Cell References in Excel - This quick, time-saving video by Nicky will talk you through all you need to know about creating Partial Absolute Cell References.
- Save Time in Excel with Autofill — Autofill can save you lots of time, filling in data so you don't have to type it in yourself.
Why not sign up to our newsletter?
Sign up to our monthly newsletter, full of tips, tricks and news to help you to be happier and more productive at work.
Testimonials from happy Customers
Great course, enjoyable and useful.
I am very happy, taking this training. I would say I am one step more confident. This was an interesting and very useful experience. Our lecture was a great, I have to sa...
The trainer covered all the course outline at a steady pace that we can all follow.
Excellent. Very helpful
Lynda Marshall7 days ago
Really informative and easy to follow instructions.
Philip Abraham8 days ago
The exercises were really well designed and interesting. I learnt a lot, and am looking forward to part 2.
Hannah Wilson16 days ago
I really enjoyed the training.
Trusted Customer19 days ago
Clear and concise training
Esther Dibiaocha23 days ago
Very good and educative. Quite interactive with so much to learn in a day.
Trusted Customer23 days ago
Sometimes I felt it was going too fast. Otherwise excellent training. I would definitely recommend Happy
Claire23 days ago
Excellent course, good balance of participation - would highly recommend