Lock or Unlock Columns or Rows In Excel

My AMS keywords are showing me that people are searching on Amazon for how to lock or unlock columns in Excel.

First, a retail site like Amazon is not the best place to do a how-to sort of search. It’s just too granular a question. You want to use Google or Bing or something for that kind of question. But putting that aside…

What those people are probably searching for is how to freeze or unfreeze panes. That’s how you keep a top row or left-hand column (or both or more than one) always visible as you scroll through your data.

So. In case someone needs that…First, you can get the ebook of Excel Tips and Tricks for free on all major retailers. It covers freeze panes at a very basic level along with a number of other little tips and tricks to make using Excel easier.

Also, I have a video up on this, too, on YouTube:

Enjoy. Freeze panes is a lifesaver if you don’t already know it.

Free Ebooks

It’s summer. It’s hot. I have to move. I don’t want to. Because it’s hot. So I put a few books to free to make myself feel better.

Which is your gain. Haha.

Until the end of July (unless something drastic happens and I change my mind), you can get the ebook version of either Excel for Beginners or Word for Beginners for free on all major retailers.

If you already have the print versions it’s a great time to pick up the portable, color versions. If you don’t have one or the other yet, great time to check ’em out, because, free.

Now, keep in mind, Amazon sometimes has a mind of its own so it may fall off of free there unexpectedly. So if you click to Amazon and it shows as $4.99, try one of the other stores before you give up.

Enjoy!

Excel for Beginners: Amazon, Apple, Google, Nook, Kobo, Universal Link
Word for Beginners: Amazon, Apple, Google, Nook, Kobo, Universal Link

Video Courses and Affinity Templates

Those who’ve been around here a while may remember that at one point I had Excel for Beginners, Intermediate Excel, and the Easy Excel Essentials content (Printing, Formatting, Pivot Tables, Charts, IF Functions, and Conditional Formatting) available as video courses through Udemy.

I pulled those courses when they introduced a nonsensical tax form that I couldn’t fill out. But I still had the videos. And when I went back and looked at them this week, they were actually good.

They use the whole “I will tell you, then I will show you” approach which is not my personal favorite, but it is theoretically the best way to present information for a large audience, so that’s why I did them that way.

Anyway. I have now added those videos to the Teachable store I set up. So if you prefer to learn visually that is now an option. Use code MLH50 on Excel for Beginners or Intermediate Excel to get those half off. The individual Easy Excel Essentials courses are also available for just $15 a pop.

I expect I will add more video courses. I’ve started prep for an Excel formulas and functions course and know I definitely want to do that one to complete that series of videos, but not sure what will come next. So if there’s some topic you’d really like to see covered, now is the time to let me know. No guarantees I’ll cover it, but if it was already on the list it may move higher.

Also, when I put together the Affinity Publisher for Fiction Layouts content, I decided to put templates that people could download up on Payhip. So if you want an Affinity Publisher file that already has the master pages and text styles created that’s where you can find them. It saves some time, for sure, but you still absolutely need to know the basics of working in Affinity Publisher for a print layout to effectively use them. They’re not for an absolute novice.

Alright then. That’s it. Hope you’re all doing well.

An Interesting Excel Question

Today I received an interesting Excel question from a user and thought I’d share the solution I came up with here.

Here was the question: In excel, what is the formula for taking a cost times a 30% margin then rounding it up to the next $x.x5 or $x.x9     (example: $3.45 x 30% margin = $4.93, roundup to $4.95) or (example: $3.48 x 30% margin = $4.97, roundup to $4.99)

At first, I thought, there’s no easy way to do this. And there isn’t. A quick search for functions that would do this specific task resulted in nothing.

But then I remembered that I’d covered the CHOOSE function in Excel 2019 Formulas & Functions and that it could be used for this. As it turns out, it still wasn’t easy to do, but it is doable.

(And there may very well be a much simpler solution to the problem, but this seemed to work for me, so it’s what I went with.)

Here’s what I ultimately came up with:

=ROUND(A1/0.7,2)+IF(TRUNC(A1/0.7)-A1/0.7=0,0.05,IF(ROUND(A1/0.7,1)-ROUND(A1/0.7,2)=0,0.05,CHOOSE(RIGHT(ROUND(A1/0.7,2)),0.04,0.03,0.02,0.01,0,0.03,0.02,0.01,0)))

The first part of that formula, =ROUND(A1/0.7,2) is calculating the marked-up price on a value in Cell A1. That gives the $4.93 or the $4.97 value.

The second part of that formula is where it gets interesting. Let’s drop out the IF functions for now and look at the CHOOSE function:

CHOOSE(RIGHT(ROUND(A1/0.7,2)),0.04,0.03,0.02,0.01,0,0.03,0.02,0.01,0)))

It’s best to work from the inside out.

So we start with the (ROUND(A1/0.7,2) portion which is just giving us the number we’re working with.

Next is the RIGHT function. What that’s doing is taking the right-most digit of our number. So in the examples above that would either be the 3 of $4.93 or the 7 of $4.97.

Finally, we have the CHOOSE function which basically provides a different result depending on the value you give it. So in this case a 1 returns a value of .04. A 2 returns a value of .03, etc. Once we cross the 5 mark we have to switch things up a bit so that 6, 7, 8, and 9 will result in values that end in a 9 instead of values that end in a 5.

That value gets added to our original calculated value to create a result that ends in either a 5 or a 9.

But because I used the RIGHT function we have a problem. Any value that’s a whole number, like $9.00, isn’t going to calculate properly because RIGHT will pull in a value of 9 not 0. And any value like $7.30, $8.20, etc. will also not work properly because RIGHT will pull a 3 or a 2 or whatever the next actual digit is instead of the zero.

We can solve that, though, with IF functions. Namely,

IF(TRUNC(A1/0.7)-A1/0.7=0,0.05,

and

IF(ROUND(A1/0.7,1)-ROUND(A1/0.7,2)=0,0.05,

IF(TRUNC(A1/0.7)-A1/0.7=0,0.05 basically says that if it’s a whole number then add .05 to it. And IF(ROUND(A1/0.7,1)-ROUND(A1/0.7,2)=0,0.05 says that if the rounded value with one digit is the same as the rounded value with two digits, then also add .05.

A little messy, but it solves those two issues.

And I think all of it taken together answers solves the issue.

Back To School Sale

Since the world is still on fire and many people are dealing with back to school craziness, I thought I’d do what I could and put a bunch of school-friendly titles on sale for a couple weeks. Each of the below titles is on sale for $2.99 USD.

Click on any of the images below to be taken to a Books2Read page for that title that has all the stores listed. (If you’re already set up with them you’ll go straight to your chosen store.) Or you can use any of the store pages on the right-hand side here and get to the books that way.

Excel Essentials

Excel for Beginners open sans boldv2 Intermediate Excel Open Sans50 Excel Functions open sans

50 More Excel Functions open sans

 

 

 

 

Word Essentials

Word for Beginners open sansIntermediate Word open sans

 

 

 

 

PowerPoint Essentials

PowerPoint-for-Beginners-Generic    Intermediate-PowerPoint-Generic

 

 

 

Access Essentials

Access for Beginners 20200202Intermediate Access 20200202

 

 

 

 

Data Principles & Budgeting

Data Principles for BeginnersBudgeting for Beginners open sansExcel for Budgeting open sans

 

 

 

 

Keep in mind this is only for the ebook versions, but all of these titles also have paperback versions and most have hardcover versions as well that are, I think, reasonably priced.

And some of these are very good deals indeed, because I was being lazy so I priced everything at $2.99 which means that Access for Beginners, for example, which is usually $7.99 is on sale for the same price as Excel for Beginners, which is normally $4.99. (USD. But equivalent discounts in your local currency.)

Enjoy.

 

 

Reading is My Refuge

My last two years at Stanford were two of the hardest years of my life. I had decided to triple major–which included a major I didn’t even start until my junior year–and I was also working more than full time to pay for room and board. So 19 or 20 units each quarter plus 50 hours of work a week. Oh, and I was commuting from Sunnyvale my junior year so add in a real drive each day as well.

It may seem strange, but what got me through it was reading. Mostly fiction books, but some non-fiction too. (That was when Guns, Germs, and Steel came out and I absolutely loved that book.) That first finals week I think I read three fantasy novels while studying for and taking all of my exams.

I was lucky to work in a bookstore and so have free access to books. (It was a company program, I wasn’t cheating in any way.) But even if I hadn’t, I would’ve worked an extra hour a week to be able to buy books, they were that important to me.

Which is why yesterday I dropped the ebook prices on about a dozen different titles. Since I know there are people like me out there who are desperately in need of a distraction right now, I thought I’d help out a bit.

We’re all going to need to get away and disconnect to make it through this. For some that will be video games or TV shows or movies. For others it will be books.

So…If you’re a book person, here’s what I’ve put on sale. It’s a very eclectic mix as you’ll see. Hopefully there’s something in there for everyone:

Just click on the image to be taken to the Books2Read page which should have links for all retailers. Or you can just go to your favorite retailer and look the titles up. All except for Erelia are available everywhere and most libraries should also be able to get them.

Non-Fiction ($2.99 USD each)

Excel for Beginners open sans boldv2

Excel for Beginners: A guide to Microsoft Excel for those who need to master the basics.

 

 

Budgeting for Beginners open sans

Budgeting for Beginners: A book that will teach you how to figure out where you are financially, judge what that means, and give tips for how to improve. Especially helpful right now for those who are finding themselves without a steady paycheck, because it covers how to approach irregular income like that. (Also available in audio as the Juggling Your Finances Starter Kit.)

Quick--Easy-Cooking-for-One-KindleQuick & Easy Cooking for One: Exactly what it says. A guide to cooking for yourself for the absolute beginner. More concept-based than step-by-step, but it does include recipes.

 

 

Writing for Beginners open sans

Writing for Beginners: An overview of what a beginning writer should know to get started. Includes discussions of point of view, tense, as well as agents and publishing paths. (Also available in audio under the title The Beginning Writer’s Guide to What You Should Know.)

 

Dont Be a Douchebag PC version 20160803v10Don’t Be a Douchebag: Online Dating Advice I Wish Men Would Take: A snarky guide to online dating for men who aren’t doing so well at it. (Also available in audio. Some retailers may have a different cover.)

 

 

Fiction:

Riders-Revenge-The-Complete-Trilogy-GenericThe Rider’s Revenge Trilogy: ($4.99 USD) A feminist YA fantasy adventure trilogy about a young girl who sets out to avenge her father and finds herself caught up in much bigger issues.

 

 

Erelia blue flame 20151222v5Erelia: (Available on Amazon Only, $2.99 USD and in KU) A dystopian utopia. Life seems perfect on the surface, but the reader sees just what horrible actions create that perfection. Also has a pandemic subplot. (I had unpublished this one just because I thought it needed a sequel and I wasn’t sure when I’d write that sequel, so be forewarned.)

 

A-Dead-Man-and-Doggie-Delights-KindleA Dead Man and Doggie Delights: (99 cents) First in what will soon be a six-book cozy mystery series set in the Colorado mountains. For lovers of Newfoundland dogs, Colorado, and quirky characters who like a little murder on the side. (Book 2, A Crazy Cat Lady and Canine Crunchies is also reduced to $2.99 USD.)

 

Something-Worth-Having-KindleSomething Worth Having ($2.99 USD): Contemporary romance bordering on women’s fiction. About a woman facing a breast cancer diagnosis who goes on a road trip with a man she is absolutely not allowed to fall in love with. (A related but standalone title, Something Gained, is also just $2.99 right now.

 

A New Release (or Six): Mail Merge

It’s been a busy week. I know better than to do this to myself, but I just released six new titles. The big one is Mail Merge for Beginners, which covers how to create customized letters, envelopes, and mailing labels in Microsoft Word using an Excel-based list of entries.

Mail Merge

And, because it’s a pretty short and sweet guide, it’s only $2.99. So if that’s something you need (I certainly used mail merge back when I was working as a secretary at my dad’s little sign shop), then check it out.

It will also be available in paperback for $7.99. The paperback is up on Amazon now, but not yet linked to the ebook–that should happen in a couple days–but it will come up in search. It will slowly make its way to anywhere else you like to buy paperbacks in the next couple of weeks.

In addition to the mail merge book, I also just released five titles in a series called Easy Word Essentials. These books take specific topics from Word for Beginners and Intermediate Word and present them as standalone topics. They cover text formatting, page formatting, lists, tables, and track changes.

So if any of those topics are of interest and you haven’t already bought the two main Word titles, then those might be worth checking out as well. Each one is $2.99 and the paperbacks are $7.99. Same situation as above, the paperbacks aren’t yet linked on Amazon but can be found with a search and will be soon. They will also make their way to other platforms over the next couple weeks.

Easy Word Essentials

Text Formatting open sansPage Formatting1 Lists2 TablesTrack Changes

 

 

 

And now I can go enjoy my Easter and get back to proofing the next cozy mystery. Those murders don’t solve themselves, you know. 🙂 Happy holiday and/or family time to you all.

A Quick Excel Copy & Paste Trick

It’s been a while since I shared an Excel trick on here and this is one that didn’t make it into the books although I do find it useful.

As a refresher: If you want to copy an entry and paste it into other cells, an easy way to do so is to click on the cell with the information you want to copy, use Ctrl + C, then highlight the cells where you want to paste that information and use Ctrl + V or Enter.

Another option if the cells where you want to copy the information are located next to the cell with the information you want to copy is to highlight the cells you want to copy, left-click on the bottom right corner and drag down or drag to the right.

(If there’s already data in other columns and you want to copy downward you can just double left-click instead of click and drag.)

I tend to use the click and drag option a lot, but it fails me sometimes, especially when I want to copy date information because it gets too clever.

For example, in a lot of my sales tracking spreadsheets I add a column for month and a column for year and then need to copy that down however many sales entries there are for that vendor for that month.

When you click and drag with month and year information, Excel treats the data as a series by default and does the following:

Excel Copy Paste Default

I wanted every entry to be April 2019, but Excel in its wisdom advanced the month and the year by one for each row.

It turns out you can fix that by clicking on the Auto Fill Options image at the bottom right corner and changing it from “Fill Series” to “Copy Cells.”

Auto Fill Options

You then get what I actually wanted:

Excel Copy Paste 2

Another way to copy the exact same value to multiple cells in Excel is using Ctrl+Shift+Enter. Highlight all of the cells that you want to have a specific value, then enter that value in the first cell of the highlighted range, like so:

All Cells Highlighted

Then instead of using Enter, use Shift+Ctrl+Enter. The value you input into the first cell will be copied to all of the highlighted cells.

It only works for one value at a time, though. So in my scenario above I’d have to do the month first and then have to do the year separately.

Both of these tricks work in Excel 2013, which is what I’m working in, so I’d assume they work in all versions of Excel beyond 2013 as well. They may or may not work in prior versions of Excel.

Edited to add that now through June 29, 2019 you can get a 15% discount on any of the ebook versions of the Excel Essentials titles on Barnes & Noble by using promo code BNPEE15.

 

The Excel PRODUCT Function

I have to confess that the PRODUCT function in Excel is one I’ve generally considered pretty useless. SUMPRODUCT is much more exciting to me. But this morning I was trying to do some projections for sales of my new cozy mystery and I ended up using the PRODUCT function two different times.

And because I’m a nerd and Excel things excite me, I figured I’d share where and how I used it.

This will also be useful to any writers who write in a series or are thinking of doing so and want to extrapolate from sales of a first in series to sales of the whole series.

So here’s the thought process and how the PRODUCT function can come into play:

At its most basic, if I publish a single book then my earnings on that book are equal to the price of the book times the payout percentage. (In reality, if you’re in KU or have a print version it’s more complicated than that because each format has its own value but we’re going to ignore that for now.)

Now, there’s a temptation to say, “If I write ten books in this series, I’ll earn ten times as much.” But that’s not how it works.

Not everyone who reads the first book will go on to read the other books. I have a series of eight related short romance stories and I see a drop off from story 1 to story 2 and then from story 2 to story 3. But from story 4 onward it’s very close to a 100% readthrough.

If I want to calculate the value of a new customer I can’t just take the price of each story times the payout. I also have to factor in how many readers actually make it that far into the series.

So the value of book 8 to me is not price times payout. It’s price times payout times % of readers of book 1 who read it.

This is the first place you can use the PRODUCT function.

Because the calculation you’re doing here is: price times payout times % who read book 2 times % who then read book 3 times % who then read book 4 times % who then read book 5, etc.

(In Excel for Self-Publishers I did a similar sort of calculation but used a different approach that just looked at book 1 to that particular book in the series because I had real data at that point. But this is extrapolating when you don’t have any data yet.)

One way to write that calculation is: =A1*A2*A3*A4*… where each of those values is in a different cell in Column A.

Another way to write it, though, is using PRODUCT. You just write =PRODUCT(A1:A9) assuming your price is in A1, your payout is in A2, and your readthrough rates are in Cells A3 through A9.

Isn’t that nice and simple?

I know, it’s a little hard to visualize. And you’re probably not going to set your data up exactly that way.

But let’s look at a simpler example, which is the second way in which I used PRODUCT.

First I had to calculate the value above. I assumed I had a ten book series with book 1 priced at 99 cents and the rest at $3.99 with a fifty percent readthrough from book 1 to book 2 that then goes up to 80% and then 95%, I calculated that I would earn $7.54 for each new reader.

Currently book 1 is priced at $3.99.

So that’s an increase in overall revenue by a factor of 2.70 just based on having more books out. (7.54 divided by 3.99).

But we also have that price drop factor at play. How many more people will read book 1 if it’s priced at 99 cents than are currently reading it when it’s priced at $3.99? For my purposes I said three times as many.

(This is for cozy mystery. Other genres might see no increase or even a drop. Or readthrough might be severely impacted depending on book 1 and book 2 prices. You have to know what you’re selling or have a guess how it’ll behave to do this.)

Next, we have the series factor. Some people prefer to read series instead of standalones. And more books means more visibility. So how much will having ten, presumably well-reviewed, books in a series impact book 1 sales? In this case I assumed that would double sales although there’s a good chance it could do more than that.

So if I want to take current sales on book 1 and try to figure out what I might earn if I have ten books out in that series what I need to do is take the amount I’m earning each month on that book and multiply it by that readthrough factor and then multiply that by the price drop factor (assuming I’m dropping book 1’s price, otherwise it’s just 1), and then multiply that by the series increase factor.

Which is another place to use PRODUCT. Here’s the Excel worksheet so you can visualize this:

Series Value Estimation

I have the increase factors in Cells C34 through E34, so my formula in Cell F34 is =PRODUCT(C34:E34) to get my overall factor of 16.2.

I can then take that number and multiply it by the amount I expect to earn on the first cozy when things reach a steady state. Let’s say $250. (In the image above that calculation’s done in Cell G34.)

(You can use PRODUCT again here, which is what I did. In that case, the formula is =PRODUCT(B34:E34) because I have Book 1 sales in Cell B34. Or you can just do =B34*F34.)

Based on these calculations I can say that if I have a Book 1 in a series that is earning me $250 a month and I write nine more books in that series and discount the first book to 99 cents while selling all the other titles at $3.99 with my assumed readthrough rates and price drop and series increases that I will earn, on average, $4,000 a month from those ten books.

Understand, though, that there are many many assumptions at play here. If my Book 1 to Book 2 readthrough is 75% instead, that number goes up to $6,000 a month for a ten-book series. If I see a four-fold increase in sales from having a series rather than a two-fold increase then it’s $8,000. If I have 75% readthrough AND a four-fold increase, then it’s $12,000 a month.

On the flip side if there is no series increase and dropping the price only doubles sales then it’s just $2,000 a month for a ten-book series. And if people fall off of the series as it continues (say you have lower and lower readthrough rates after Book 6) then it’s just $1,445 a month for that ten-book series.

(Don’t continue a series like that. Wrap it up as soon as you can. Book 1 to Book 2 you should see drop off. Family and friends will buy Book 1 to support you but not read the whole series, some people will find that the book just isn’t for them, and some will buy and not get around to it for five years. Book 2 to Book 3 may have another drop off because people who were on the fence with Book 1 may try Book 2 and then decide not to continue. But from Book 3 onward, you should really have your core audience.)

(I should also add that there could be a time factor at play here. The longer the series the longer it takes someone to read through that series. On a recent podcast someone mentioned six months for how long it can take to read through a series. For a very long one, I’d agree that might be true. For a trilogy, if you’ve really hooked a reader, I’d say one month at the longest. Of course, that’s from when they start reading it. But once you reach steady state for a series that should disappear in the wash because people should always be reading through your series each month even if they’re at different points in doing so.)

Anyway. You can make all of this insanely complicated if you want, but this was just a basic calculation I wanted to share using PRODUCT which I had so unfairly misjudged. Once you set something like this up, it’s easy enough to play with the numbers and see your full range of values.

 

 

Excel for Budgeting is Live

File this one under why I should never read my emails. Haha. Just kidding, this was one I’d been thinking of writing for a while but just hadn’t written yet. So that email someone sent a couple months ago asking how to apply Excel to budgeting was just a good reminder that I wanted to get this done.

Over the last ten years of self-employment I’ve developed an Excel workbook I use to juggle my finances. Because one of the biggest challenges of self-employment is cash flow. I can make $25K in one month and then nothing for three. So I have to always be monitoring where I am in terms of cash to pay my bills. And I have to know where I can look to get cash to pay my bills if there isn’t a big paycheck coming and there isn’t enough in the bank account.

So over the years I’ve developed a focus on my short-term liquid net worth and also on haircutting my assets. (Much like a broker-dealer is required to haircut their securities portfolio when they value their holdings.) Because a 401(k) is great and all, but it doesn’t do you any good if you can’t pay your bills today.

In Budgeting for Beginners I talked about all of this and how to judge where you are financially and take steps to improve upon that. But what I didn’t include there was the Excel workbook I use to track all of this. And it’s not exactly intuitive how you’d create something like this.

I now have one nice little worksheet I can print off that shows my next three months of cash flows, my assets and liabilities, my available credit, and my short-term and long-term net worth. But when I look at my trackers from ten years ago they are nothing like what I now have.

(I think I missed my calling as some sort of data nerd. But, oh well.)

So anyway, that’s what Excel for Budgeting is. It walks through how to create this workbook for tracking your finances. It’s what I use and (knock wood) I’ve somehow managed to stumble along for close to a decade now with uncertain income and making extreme life choices. I do think you should know Excel before you try to use it, but there are step-by-step instructions in there for how to create everything if you want to give it a try anyway.

(And, as a weird added bonus, if you’re like I once was and split time between two countries so have to deal with payments in multiple currencies, I covered that, too. Because, why not?)

Now maybe I’ll be turning to writing some fiction. Maybe. As long as I don’t walk my dog or check my emails before I start the next project.