Excel Tips Submitted by You [Part 3]

Share

Facebook
Twitter
LinkedIn

It is the 3rd day of Your week @ PHD and we have already posted some excellent array formulas, productivity hacks and other very useful tips. Just one more day is remaining, so if you want to share something with all of us, go ahead and submit your tips for your week.

Must read: part 1 of excel tips shared by readers | part 2

Display file path in Excel using Web Toolbar by Ang Kean


Excel by default not display the open workbook full path name.

Tips : add the web toolbar item
1. Right click at the toolbar area, choose “Customize…”
2. Browse “Categories:” to “Web” and “Commands:” to “Address”
3. Drag the “Address” Commands to toolbar area by holding left mouse key.


Making VLOOKUP ranges dynamic by Thuy


I use VLOOKUP a lot in my work and while it was great to use, I wanted a bit more ability to check my formula without having to click on every cell to do so.

Now, I use both the INDIRECT, MATCH, and named ranges in my VLOOKUP to help check the accuracy of my references quickly.

In this example, to get my scores for each region for q3_12, my old VLOOKUP formula would be a simple:

=VLOOKUP(W$29,’Data’!$A$1:$AZ$200,6,FALSE)

To

=VLOOKUP(W$26,INDIRECT(“‘”&$Q29&”‘!a1:az200”),MATCH($R29,INDIRECT($S29),0),FALSE

I actually put the data range in a column Q29 on my spreadsheet and indicate the named Range of in the column.  In this case, my reference named range is “Data”.

For the column count, before using match, I would count manually but whenever there was a data change (as in, columns would get moved around), I would need to change the column manually.  It would get very confusing considering I use over 500 lookup formulas in my workbooks and not very accurate.

I use the MATCH function to help me locate the column that I needed the LOOKUP to look under.  First, I would name the row of my data reference sheet to something like DataCol:  =Data!$1:$1.

Then in my vlookup formula worksheet, I would put in column R29, put the heading of the column I was looking for in Column Q29, in this case it would be “q3_12”.   In column S, I would indicate the named range of where to look for the match.  In this case it is “DataCol.”
Vlookup tweak - data format


R1C1 still makes sense by Vishy


What is R1C1 reference style

Instead of using letters for columns and numbers for rows (i.e. A1 reference style), R1C1 style enables using numbers for both rows and columns.

Why should you know this

  • You are working on a machine with such setting, so instead of getting flummoxed, you better understand it (or at least learn to revert to A1 style referencing)
  • Easy to construct “Indirect” addresses, “offset” references etc. (used in conjunction with Row, Column, Address, Rows, Columns functions)
  • Easy to write macro loops (since dealing with numbers instead of single/double letters)
  • The two styles are equivalent in power, but R1C1 style has an advantage when it comes to formula editing (eg. find/replace functionality)

How to setup

  • XL 2003 : Tools > Options > General > Settings > R1C1 reference style
  • XL 2007 : Office > Excel Options > Formulas > Working with formulas > R1C1 reference style

How to use

  • RxCy : absolute reference to xth row and yth column (any of x / y could be missing which then means “current”)
  • R2C10 refers to 2nd row 5th column (equivalent to E2 in A1 style)
  • RC5 refers to current row 5th column
  • R[x]C[y] : relative reference w.r.t. current cell to xth row down (up if x is -ve) and yth column right (left if y is -ve)
  • R[2]C[-10] refers to 2nd row down and 10th column left of current row
  • RxC[y] : mixing of absolute/relative reference

Where should one not use this

While working on the sheet, relative reference may be far apart from current cell. If there is large number of such references, avoid R1C1 style.

Interesting Trivia (added by PHD)

my twitter handle is r1c1, so are my reddit, digg and older blog’s handle


More resources to help you understand these tips better:

Vlookup excel formula in plain English

Vlookup tutorial

Thank you so much Ang Kean, Thuy and Vishy. You are *really* outstanding individuals.

PS: We have only one more day people, so go ahead and share your tips. Go!

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

11 Responses to “Fix Incorrect Percentages with this Paste-Special Trick”

  1. Martin says:

    I've just taught yesterday to a colleague of mine how to convert amounts in local currency into another by pasting special the ROE.

    great thing to know !!!

  2. Tony Rose says:

    Chandoo - this is such a great trick and helps save time. If you don't use this shortcut, you have to take can create a formula where =(ref cell /100), copy that all the way down, covert it to a percentage and then copy/paste values to the original column. This does it all much faster. Nice job!

  3. Jody Gates says:

    I was just asking peers yesterday if anyone know if an easy way to do this, I've been editing each cell and adding a % manually vs setting the cell to Percentage for months and just finally reached my wits end. What perfect timing! Thanks, great tip!

  4. Jon S says:

    If it's just appearance you care about, another alternative is to use this custom number format:
    0"%"

    By adding the percent sign in quotes, it gets treated as text and won't do what you warned about here: "You can not just format the cells to % format either, excel shows 23 as 2300% then."

    • Steven Peters says:

      Dear Jon S. You are the reason I love the internet. 3 year old comments making my life easier.

      Thank you.

  5. Jon Peltier says:

    Here is a quicker protocol.

    Enter 10000% into the extra cell, copy this cell, select the range you need to convert to percentages, and use paste special > divide. Since the Paste > All option is selected, it not only divides by 10000% (i.e. 100), it also applies the % format to the cells being pasted on.

  6. Chandoo says:

    @Martin: That is another very good use of Divide / Multiply operations.

    @Tony, @Jody: Thank you 🙂

    @Jon S: Good one...

    @Jon... now why didnt I think of that.. Excellent

  7. sajith says:

    Thank You so much. it is really helped me.

  8. Winnie says:

    Big help...Thanks

  9. Chris Fry says:

    Thanks. That really saved me a lot of time!

  10. Texas says:

    Is Show Formulas is turned on in the Formula Ribbon, it will stay in decimal form until that is turned off. Drove me batty for an hour until I just figured it out.

Leave a Reply