Onetastic for Microsoft OneNote Onetastic Macroland
  • HOME
  • MACROLAND
  • BLOG
  • ONECALENDAR
  • DOWNLOAD
  • CHANGELOG
  • FAQ
  • CONTACT
  • MY ACCOUNT
  • RSS RSS
YOU CAN NOW DOWNLOAD MACROS FROM MACROLAND. CHECK IT OUT!

ALL POSTS

  • Macros beyond Current Page and Macroland, a repository for Macros
  • OneNote SkyDrive Sync - Why you shouldn't use other...
  • Onetastic and OneCalendar Now Available in German
  • Onetastic and OneCalendar Now Available in Chinese and Turkish
  • How to Set up Shortcuts for Macros
  • Translate Onetastic into Your Own Language
  • Macro Tutorial - Inserting Text
  • Error Reporting
  • Macro Tutorial
  • Function macro
  • Extending possibilities with Macros
  • Rearranging Ribbon Buttons and Auto-scale
  • Update for OneCalendar: Page Previews and Scrolling
  • Update for Onetastic: Select Text from Image
  • Update for Onetastic: Favorites and Custom Styles
  • Update for Onetastic: Pin to Desktop, Improvements, Bug Fixes
  • Update for OneCalendar: Settings, Keyboard shortcuts, Go to Today
  • The Stubborn Docked Window
  • New Feature: Image Crop
  • What is Onetastic?

Donate
for future development of Onetastic
(Why?)

Sep 20
2012
Function macro

Function macro under Table category is one of the very complicated macros I authored for Onetastic. It provides functionality similar to Excel functions, and it supports the following functions, as you will see when you launch it:
  • Sum
  • Average
  • Count non-empty
  • Count numbers
  • Min
  • Max
The macro has three selection modes:

Single cell selection

This is when you have a single empty cell selected. In this case the macro will be applied to the cells above the selected cell:

Function Macro

Here the cursor is on the Total row and Flights column. If you run Function macro and select Sum as the function, you will get the total number of flights in the cell.

Single column/row selection

Alternative to the above selection method, you can select a whole column (or a row) where the last cell is empty and you will achieve the same result as above. This allows applying the function if you have your data in a row rather than column, or otherwise it does the same as the single selection mode. Both of the following will fill in the total days in space:

Function Macro

Function Macro

Multiple empty cells on a single column/row

If you want to apply the function to multiple columns/rows at the same time, you can select multiple cells on the same row or column. Running the macro with following selection will fill in all selected cells:

Function Macro

Function Macro

If your selection is not one of the above (e.g. you select cells from multiple columns and rows, you select cells from more than one table, you don't have any selection under a table, etc.), you will see some error message like:

Function Macro

Comments

Name
Comment

Other Posts

  • Macros beyond Current Page and Macroland, a repository for Macros
  • OneNote SkyDrive Sync - Why you shouldn't use other...
  • Onetastic and OneCalendar Now Available in German
  • Onetastic and OneCalendar Now Available in Chinese and Turkish
  • How to Set up Shortcuts for Macros
  • Translate Onetastic into Your Own Language
  • Macro Tutorial - Inserting Text
  • Error Reporting
  • Macro Tutorial

FEATURES

  • Macros
  • OneCalendar
  • Image Utilities
  • Custom Styles
  • Favorites/Shortcuts

INFO

  • Blog
  • FAQ
  • Changelog
  • Contact
  • Translate Onetastic
  • Error Reporting
  • Donate

MY ACCOUNT

  • Login

RSS

  • RSS Feed RSS

FROM THE BLOG

  • Macros beyond Current Page and Macroland, a repository for Macros
  • OneNote SkyDrive Sync - Why you shouldn't use other...
  • Onetastic and OneCalendar Now Available in German
  • Onetastic and OneCalendar Now Available in Chinese and Turkish
  • How to Set up Shortcuts for Macros

DISCLAIMER: The opinions and views expressed in this website are those of the author and do not necessarily state or reflect those of Microsoft.