MrExcel's Learn Excel #552 - Hiding Negatives

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Jul 20, 2009.
In todays podcast, Episode 552, I use the IF function to hide values that are negative. This is a formula-based solution. In tomorrows podcast, a different way to solve the problem using number formatting.

This blog is the video podcast companion to the book, Learn Excel from MrExcel. Download a new two minute video every workday to learn one of the 277 tips from the book!
maxresdefault.jpg


Transcript of the video:
Alright welcome back to the MrExcel netcast, I'm Bill Jelen.
In yesterday's netcast we had a suggestion from Van on how to simplify the birthday suggestion and in the interest of time I simplified his suggestion and we created a formula yesterday that took a look at a date in column C –TPDAY, the today function to figure out how many days away that is in the problem with that is that the birthdays that have already passed showed up with a negative birthday which might kind of confuse whoever's using the spreadsheet and so a great way to solve this is to use the IF function; we're going to edit that formula and say equal IF that calculation C2-TODAY is less than zero then we want to put nothing, so I'm going to push the quote to quotation marks to say that I don't want to see anything in the cell and then if that's not true then we go ahead and calculate the number C2-TODAY, close the today function, close the IF function, hit ENTER and when we copy that formula down to all of our cells you'll see that for any of the dates that have already passed is negative, but for the customers who still have birthdays yet to come those dates show up as positive, so a much better way to handle this situation.
Again thanks to Van for sending in that suggestion and we'll see you tomorrow for another netcast from MrExcel.
 

Forum statistics

Threads
1,214,926
Messages
6,122,305
Members
449,079
Latest member
juggernaut24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top