Is it possible to reference the name of the current table in a formula?

Hi,
I am wanting to be able to reference the name of the same table that I am entering a formula into, i.e.:
=SUMIFS(Net,Event,"CURRENT TABLE NAME HERE",Category,"Publicity")
Is this possible?
Thanks,
Nick

AppleScript can access the current table name, so it if you are doing a lot of formula entry in different tables you could click once in a table and have a short script insert the formula for you.  Here's a simple example:
Say you have a data table like this:
Event
Category
Net
Event 1
Publicity
10
Event 2
Celebration
20
Event 1
Supplies
5
Event 1
Salaries
20
Event 3
Celebration
25
Event 1
Publicity
20
Event 2
Publicity
11
Event 1
Accounting
20
And (important) you have 'Use Header Names as Labels' turned on in Numbers > Preferences.
You caninsert this formula:
=SUMIFS(Net,Event,"Event 1",Category,"Publicity")
... into a table named Event 1 that looks like this:
Cat
Amount
Publicity
30
...with a script like this:
-- NB:  the \ "escape" the quotation marks so AppleScript takes them literally
tell application "Numbers"
  set t to document 1's active sheet's first table whose selection range's class is range
  set c to t's selection range's first cell
  set c's value to "=SUMIFS(Net,Event," & "\"" & t's name & "\"" & ",Category,\"Publicity\")"
end tell
The script automatically inserts the name of the table you have clicked in.
(To use the script just copy and paste into Script Editor, click once in the cell where you want the formula (B2 in the example) and click the 'Run' triangle button in Script Editor.)
SG

Similar Messages

  • Existing cross Reference: how to change the name of the file it refers to?

    Hi everybody,
    I am a professional translator.
    One client of mine sent me a complete FrameMaker 9 book file for translation.
    I translated the content via a CAT-Tool and now am in the process of checking if cross references and markers are ok directly into the file.
    I noticed that many cross references are linked to another file of the book. But in the process of translating each file separately, I gave them a slightly different name (I added the language at the end) so as to be able to recognise them eventually.
    Now I have this problem: I cannot find in the cross reference interface where to change the name of the file into the new one the cross reference is supposed to refer to.
    Am I right in wanting to change the file reference? If so, how do I do that?
    Or is it better to avoid this task and rename the translated file into their original names ? Would it work then?
    Thanks for your help.

    ... book file ...
    ...  each file separately, I gave  them a slightly different name (I added the language at the end) ...
    I'm guessing that you renamed the component files by means other than using the Edit > Rename File from the Book menu.
    If so, do over. Rename from the Book menu. It automatically revises all the cross-references in all the component files.
    In a Book, the only thing that's safe to rename with the file manager is the .book file itself.

  • Moving mail to folders - is it possible to type the name of the folder, vs scrolling?

    Apologies in advance if there is already an answer to this question in the forums; I searched with every combination of the subject I could think of...
    Context: my iPhone 4 syncs with an IMAP mail server.  I have lots of folders on the server, and I can see all of them on the iPhone.  I know how to use the "file" button at the bottom of an email, to move the message to a folder.
    Question: is there a way to "open" the keyboard during the filing process, so that I can type the name of the folder, rather than scrolling through the folders?
    Thanks for your help.

    It also works  with google mail.
    For someone looking for help you sure have a funny way about you. Trying to narrow down where and under what circumstances a problem occurs is called troubleshooting. Showing that mail's imap works with gmail and google should al least give you pause to reconsider your out and out assertion that the problem has to be solely with mail and perhaps lead you to look at the possibility of an issue with the interaction between mail and godaddy. Just because someone who answers the phone at godaddy says the problem has to be in mail don't make it so.
    You know were all just users here, no one is getting paid. Those of us who try and help users like yourself are doing it to give something back to the community. You don't like my help, fine don't take it but check the attitude at the door.
    Hope you get your problem fixed.

  • Is it possible to reference one cell from the value of another?

    Is it possible to reference one cell from the value of another e.g.
    value of b1 = value of c(value of a1)
    So if a1 = 3 then b1 = c3, if a1 = 5 then b1 = c5.

    Excellent!
    Thanks Wayne. Just saved me many hours and a headache.
    Works like a dream.
    Thank you for your succinct (and accurate) answer.
    Mark

  • Is it possible to find out the names of the various objects (jpegs, pdf's, etc) in a keynote presentation?

    I have to re do a keynote presentation for powerpoint -- the export feature won't work on the pc -- it simply says that it wasn't possible to display some of the text and objects because they had become corrupted, and were replaced with blank slides.  I was wondering if it's possible to find out the names of the objects used in the presentation.  That way I could save them to a folder and just paste them in to the PPT version on the PC.  I know they have to be somewhere on the Mac that the presentation was made on, so is it also possible to find out where they would be?
    I tried right clicking on the objects in the slide, but there was no 'get info' option, like there is in a finder window.  Please help if you can.
    Chris

    There are a few options for you here. In the Inspector>Metrics Tab, when you click on the picture, it will display the name. Then you can use the find feature of the Finder to locate the picture. If you have Keynote set to save files as Packages, you can right click the file in the Finder (or control click) and then select Show Package Content. This will show you all the files that make up your Keynote and you can copy the pictures out of there into a new folder. Finally, if you can't find them any other way, you can select and copy the picture in Keynote, then open Preview and command-n (or File Menu>New from Clipboard) and then save the file to where ever you want so you can find it.

  • Is it possible to change the name of the characteristic after the PA is act

    Is it possible to change the name of the characteristic after the PA is activated?
    If yes what should I do?

    Hi,
    yes its possible and it works in the same way as the creation of a new characteristic / assigment to an up- and running operating concern.
    Thats because the "name" of a characteristic is not stored in a text table but it is the field label of the data element.
    Search in the SDN forum if you are unsure how to do that.
    Best regards, Christian

  • Is it possible to change the name of the application in webdynpro

    Hi ,
             I created one application with 2 views .It is running perfectly.Now the problem here is i want to change the name of the application.Is it possible to edit the name of an application
    Regards
    Padma N

    hi,
       I want to create an application with name Z_XXX but while running the application it has to show only XXX at the top of the Application window
       i dont think which u have mentioned is possible or Even i may be ignorant in that.
    better give the Application name as XXX instead of Z_XXXX
    Thanks and reagrds
    Fistae

  • Having the possibility to customize the name of the backup directory

    Hello,
    New user of lightroom v3.3, i noted the impossibility to customize the name of the backup directory.
    it's a plain full text with "importé le 10 janvier 2011" for example wich is not the best way to store to retrieve old photos.
    is it possible to have à traditional "importé le 2011-01-10" for example so that the directory will folow theimselves hystoricaly?

    I agree that would be preferable.

  • I would like to share my photo's titles and descriptions in the photo streams into which I place these carefully labeled photos. I do this so clients can see the names of the things they're swiping through. Is this even possible?

    I would like to share my photo's titles and descriptions in the photo streams into which I place these carefully labeled photos. I do this so clients can see the names of the things they're swiping through. Is this even possible?

    No.  Send a feature request to Apple via http://www.apple.com/feedback/iphoto.html.
    OT

  • I can sometimes connect to my Wi-Fi network, but sometimes the name of the network doesn't even appear when i try to find available networks. Is it possible that my software is too new for the network?

    I can sometimes connect to my Wi-Fi network, but sometimes the name of the network doesn't even appear when i try to find available networks. Is it possible that my software is too new for the network?

    It may be your router is to old. Good read:
    http://www.wi-fiplanet.com/tutorials/7-tips-to-increase-wi-fi-performance.html

  • I can't remember the name of the game where you have to throw a stickman off a ledge and cause as much damage as possible, can anyone help me please? i'm sure the start screen had the yellow hazard sign...

    i can't remember the name of the game where you have to throw a stickman off a ledge and cause as much damage as possible, can anyone help me please? i'm sure the start screen had the yellow hazard sign...

    Can't help you with that. But perhaps you can help me remember the name of my favorite book from when I was a child. The cover was blue.....
    Seriously, try googling something like "iphone game stickman".

  • I have got a mac book air as a gift from my brother so is it possible to me to ask Apple store to change the keyboard to English and Arabic while the name on the bill is my brother name

    Hi
    I have got a mac book air as a gift from my brother so is it possible to me to ask Apple store to replace the keyboard to English and Arabic while the name on the bill is my brother's name

    Public23 wrote:
    is it possible to me to ask Apple store to replace the keyboard to English and Arabic while the name on the bill is my brother's name
    Nobody here can tell you what an Apple store will respond to any question you might ask them.  You need to contact whatever store you are talking about directly to get your answer.
    The US online Apple store does not sell machines with Arabic keyboards, that can be seen from their website.

  • Is it possible to show the name of the picture in photo album?

    Or is there any program on iPad that shows the name of the picture?

    The Apple iPad apps don't. Check out Photo Manager Pro http://graphicssoft.about.com/od/iphoneandipodtouchapps/fr/Photo-Manager-Pro.htm
     Cheers, Tom

  • Not able to change the name of the attribute of the Table operator.

    We are trying to create OMB scripts to automate certain tasks. As a part of this, there is a requirement to change the attribute name of table operators (which by default gets the name of the column). It is possible to change the attribute name from the GUI. But I was not able to do the same using OMB Scripting. Here is the script I used.
    OMBALTER MAPPING 'TEST' \
    MODIFY ATTRIBUTE 'GEOGRAPHY_ID' OF GROUP 'INOUTGRP1' OF OPERATOR 'TEST' \
    SET PROPERTIES(BUSINESS_NAME,PRECISION,DESCRIPTION) \
    VALUES('MEMBER_ID',2,'MEMBER')
    This script was to change the name of the attribute - GEOGRAPHY_ID of the table operator TEST.
    From what I can make out from the Scripting reference, changing BUSINESS_NAME of the attribute should do the trick but it is not happening. The syntax looks correct as the precision of the column changes.
    Am I missing something? Or is it a limitation or a bug?
    I use OWB client 10.2.0.1.25 and OWB repository 10.2.0.1.0.

    Hi!
    I'm using successfully
    OMBALTER MAPPING '$mapName' MODIFY ATTRIBUTE '$attrName' OF GROUP '$groupName' OF OPERATOR '$joinName' RENAME TO '$newName'
    Regards,
    Carsten.

  • How do I change the name of the Home folder OSX 10.9

    Hi there,
    I am trying to change the name of the Home folder on my Macbook Pro running OSX 10.9  I had a clean install of 10.9, and used migration assistant to restore my settings from a Time Machine Backup. 
    The problem is that the Home folder for my user is now named "Cody 1" when it used to be "Cody".  This seems like a minor issue, but all the programs that reference data in the old location, are forcing me to go and find the data manually.  Everything from iPhoto to VirtualBox, all files have to be found manually. 
    I have tried the instructions set forth in this article, http://support.apple.com/kb/ht1428, but the dialog that should, according to the article, allow me to redirect the account to the existing folder, returns an error saying that the user name is already in use.  There is no option to use the existing folder.  I have tried re-naming the folder to something different, to no avail. 
    Ideas?
    Thanks in advance. 
    -Cody

    The Apple Support document you referenced is cumbersome, outdated, buggy, and too likely to result in the sort of problems you described.
    It may be too late now but see the following:
    Niel's post here: How to change name of home folder
    and:
    Apple Support Communities contributor Pondini found an astonishingly simple way to accomplish what you seek. etresoft distilled that information into the following User Tip:
    Changing user account short name
    Note that he writes it has been tested on Mountain Lion but the procedure appears sound and should work equally well with Mavericks.
    Back up your system before doing either one.
    To fix what happened might be possible in Single user mode. I don't have specific instructions but you should be able to find and delete user accounts in the /Users directory.
    Type carefully and don't proceed without knowing the risks.

Maybe you are looking for

  • How do you empty the trash in the Classic Environment?

    There was a large file on my desktop, called ".tif" (no filename, just ".tif" and nothing else). It was apparently created by the VueScan scanning software. It was not an image I asked it to scan, it's just some sort of test image. It only appears to

  • How to FILL the Screen in iPhoto 11

    I have a 27" iMac. I want to FILL the screen in iPhoto like I can with the desktop feature to fill the screen. The full-screen option in iPhoto only fills about 2/3 of the 27" monitor with aphoto in landscape [versus portrait] orientation. Less than

  • User Agent in FireFox works but not Safari

    I am trying to log into whstuart.com/clients but it says it requires Internet Explorer 4.0 or higher. This is the only every day task that I can't perform on Safari and would like to not have to use multiple browsers every day. I have been able to lo

  • RESULT_CACHE hint

    I am trying to figure out why the explain plan (and performance) for the same query is different between our staging environment and our production environment when using the RESULT_CACHE hint. It's significantly worse in production. Platform and dat

  • How to enforce table data consistency at Db level?

    How would I enforce the follwing data consistency, consider the following table: PK_COL     | SOME_ID | COL1 | COL2 | COl3  | some other columns ... 1       |       1 |  X   |  B   | C 2       |       1 |  X   |  B   | C 3       |       2 |  A   |  G