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.

6 Responses to “A quick personal update”

  1. David Noble says:

    Thank you for the personal update. It was quite encouraging and a breath of fresh air in my Inbox. Take care and stay safe.
    David

  2. Doctors advise:
    Virus obstructs lungs with thick mucus that solidifies.
    Consume lot hot liquids like tea, soup, and sip of hot liquid every 20 min
    Gargle w antiseptic of lemon, vinegar, & hot water daily
    It attaches to hair/clothes detergent kills it, when come from st go straight shower
    Hang dirty clothes in sunlight/cold overnight or wash immediately.
    Wash metal surfaces as it can live on them 9 days
    Do not touch hand rails
    Do not smoke
    Wash hands foaming 20 sec every 20 min
    Eat fruit/veg and up zinc levels.
    Animals do not spread it
    Avoid common flu
    Avoid eat/drink cold things
    If feel sore throat do above immediate as virus is there 3-4 days before descends into lungs
    Would love help with my database mgt in excel.

  3. Karanbir says:

    Thanks for being thoughtful of us.
    BTW How do you track your expenses/income in excel? Can you share the worksheet please.
    Stay safe you and your family, best wishes.

  4. Surya says:

    Thanks for the update and happy to know that you and family are doing good. A 21 day lockdown has now been announced in India (I live around Kolkata) so it's uncertain times ahead. I check up on your wonderful articles often and will do so even more regularly now. Stay safe and God bless.

  5. Pablo says:

    Hi from Argentina, I follow you for a lot of years now. We here are in a quarantine for 2 or 3 weeks, because the pandemia.
    Excel is also my passion and I came here looking for a Num2Words formula, but in spanish. If anyone have it, please let me know.
    Best regards.

    Pablo Molina
    La Rioja - Argentina

  6. Indrajit Kar says:

    I'm glad to have your personal update. I'm from India & following you for so many years. Cheers to have any further personal update.

Leave a Reply