Importing SUMPRODUCT formula from XL into Numbers

Hello all,
I am having some challenges converting a SUMPRODUCT function from Excel/LibreOffice.  After browsing the support postings, it seemed as if rewriting the formula as a COUNTIF(S) or SUMIF(S) function could get the job done, but I haven't met with success going those routes.
The file I'm working with is difficult for me to explain, so I have posted a small example here:
https://www.iwork.com/document/?d=Reso_book.numbers&a=p205658906
The basic application of the file is a reservation book; the formulas in question are in cells D5-L13 on the Availability sheet.  They are still in their original, non-Numbers syntax.
The Availability sheet would effectively look up a table number from the Reservation sheet and return "1" if booked, "0" if not, or "-1" if doubled.
In the posted file, D5-G5 would return 1, while H5-L5 would return 0.
If anyone would be willing to take a look, I'd greatly appreciate any advice or insight for how to rework these formulas.

I never use excel but something seems to be wrong in your original formula.
=1-SUMPRODUCT((Reservation::Table 1::$D$2:$D$10<=D$4)*(Reservation::Table 1::$E$2:$E$10>=D$4)*(Reservation::Table 1::$F$2:$F$10=$B5))
Given what I read in several pages found thru Google, the last component of your formula :
(Reservation::Table 1::$F$2:$F$10=$B5)
must not be a condition
In fact, the embedded condition appears as dropped by the formula parser.
When I reproduced you document in LibreOffice, removing the component =$B5 in the last component changes nothing.
So I built the Numbers document without it (Table YK).
In the edited table, the formula in D5 is :
=1-SUMIFS((Reservation::Table 1::$F$2:$F$10),Reservation::Table 1::$D$2:$D$10,"<="&D$4,Reservation::Table 1::$E$2:$E$10,">="&D$4)
Apply FillDown then Fill_to_right.
I'm not sure that it's what you need but it return the same values than the originla ones in LibreOffice.
Yvan KOENIG (VALLAURIS, France) samedi 29 octobre 2011 17:49:47
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community

Similar Messages

  • WANT:  to import bank activity from website into Numbers

    On my grandson's iMac with Snow Leopard I am able to copy data from our bank's website for our checking account and paste the data directly into a blank Numbers template.
    The data pastes in perfectly -- all the information neatly shown in columns and rows.
    In my PPC computer with Leopard (10.5.8) I can't do this.
    The data comes in "squashed" into one column.
    I've tried all types of ways to copy and paste -- with the same result.
    Any suggestions as to why this procedure works with Snow Leopard and not with Leopard?
    Thanks,
    Danty

    Danty wrote:
    On my grandson's iMac with Snow Leopard I am able to copy data from our bank's website for our checking account and paste the data directly into a blank Numbers template.
    The data pastes in perfectly -- all the information neatly shown in columns and rows.
    In my PPC computer with Leopard (10.5.8) I can't do this.
    The data comes in "squashed" into one column.
    I've tried all types of ways to copy and paste -- with the same result.
    Any suggestions as to why this procedure works with Snow Leopard and not with Leopard?
    Hi Danty,
    The issue probably has more to do with Safari than with Numbers or with Leopard/Snow Leopard.
    Apparently the version of Safari included with Leopard interprets data in tables as a set of tab delimited text values, a format that will paste directly into most spreadsheets. Earlier Safari versions interpreted tabular data on the web as being separated by spaces, with the rows/records being separated by returns. Pasted into a spreadsheet, the returns are recognized as row separators, but there's nothing in the copied data to indicate where the column separation occurs, so everything winds up in one column.
    On the PPC machine, you might try Firefox, which according to what I've read, does a better job with this king of data, in place of Safari.
    A second possibility is to use a script developed by Yvan Koenig to perform this task. Yvan is usually around these parts each day, and can tell you whether the script would likely work in this case, and let you know where to find it.
    Regards
    barry

  • Receive message after importing serveral songs from CD into iTunes (latest ver 11.1.5.5)... "Error occurred while converting the file 'songname'.  The required folder cannot be found."  CD/DVD ROM is no longer recognized until restart.

    Consistently receive the following message after importing serveral songs from CD into iTunes (latest ver 11.1.5.5)...
    "Error occurred while converting the file 'songname'.  The required folder cannot be found." 
    CD/DVD ROM is no longer recognized until computer is restarted.

    I have the same problem.  I recently moved my music from a Vista PC to a new Laptop with an external CD drive. It will copy one song from the CD and it will show in the Music file and then I get the message ' Error importing a CD - Folder not found'.  I must unplug the CD drive and plug it back in.  I have seen no fix for this problem.

  • Can I paste football table from Safari into Numbers by Dec 23?

    *Can I paste a table from Safari into Numbers - and get a table?*
    Whether I use Paste or Paste Match Style (?) it just goes into one column, which is useless. Same result in Pages. But in the Appleshop demo I copied the table from Safari into Excel and it created a proper table.
    Apologies if this is already answered. I am new to Mac and to iWorks. I've only got the evaluation version of iWorks v1.0. I was going to get the full version by Xmas - but this is a real showstopper. If I can't use the spreadsheet on web tables (price comparisons, stocks, etc etc) then iWorks won't do.
    If it can't do this, are there any other solutions out there? Thanks.
    *_Problem Description_*
    1. In Safari select and Copy a table (here's the football league table http://news.bbc.co.uk/sport1/hi/football/eng_prem/table/default.stm)
    2. Paste the table into Numbers - as a table (not as a single column)
    3. sort the table on descending GD

    Hello
    Some times ago, I posted a script for this kind of problem but I just discover (with your table) that I forgot a case.
    Here is a revised version which I will put soon on my iDisk.
    -- [SCRIPT Tables2Numbers_v5]
    property nbCols : "3"
    property english : true (* true= English messages, false = Messages Français *)
    property msg1 : ""
    property list1 : {}
    if msg1 = "" then my prepareMessages()
    set theDatas to (get the clipboard as text)
    if theDatas does not contain tab then
    set nbCols to text returned of (display dialog msg1 default answer nbCols)
    set nbCols to nbCols as integer
    set my list1 to paragraphs of theDatas
    set nb to count of my list1
    set nbRows to nb div nbCols
    set newDatas to ""
    repeat with i from 1 to nbRows
    repeat with j from 1 to nbCols - 1
    set newDatas to newDatas & (item (j + (i - 1) * nbCols) of my list1) & tab
    end repeat
    set newDatas to newDatas & (item (j + 1 + (i - 1) * nbCols) of my list1) & return
    end repeat
    set the clipboard to newDatas
    else
    set the clipboard to theDatas
    end if
    set my list1 to {}
    on prepareMessages()
    if english is true then
    set msg1 to "How many columns ?"
    else
    set msg1 to "Nombre de colonnes ?"
    end if
    end prepareMessages
    -- [/SCRIPT]
    If you grab your table in the clipboard after counting the columns (here 16)
    run the script
    After that you may paste the table in Numbers (or in AppleWorks)
    Yvan KOENIG (from FRANCE dimanche 2 décembre 2007 18:05:39)

  • How to import select photos from Iphoto into Adobe Elements

    How to import select photos from Iphoto into Adobe Elements

    If you wish to import in Elements Organizer here is the guide to help you out with all you need to use iPhoto and Organizer. http://helpx.adobe.com/elements-organizer/using/import-media-iphoto-library-mac.html
    If you wish to set PSE Editor as your editor for iPhoto images then here is the help link to guide you for the same - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-iphoto-mac-os.html
    Hope it helps.
    Thanks,
    Garry

  • HT2500 Can I import my contacts from Gmail into Apple mail (Snow Leopard)?

    Can I import my contacts from Gmail into Apple mail (Snow Leopard)?

    That says Reset Documents and Data, not Contacts.
    I want you to go to www.icloud.com, login and see how many contacts are there, because they are all the iCloud contacts. Any contacts that are not there, are not on iCloud.

  • How can I import Photoshop-Shortcuts from CC into the CC 2014 update?

    How can I import Photoshop-Shortcuts from CC into the CC 2014 update? Migration and Sync didn't help. What am I doing wrong? The .kys is also in the same folder as in the previous version of PS CC.
    Kindly
    Nico

    If you had Illustrator you could take advantage of smart objects.
    Has been awhile since I worked in Corel (so do not remeber if Corel had clipboard settings whcih need adjusuting), but do remember copying a path, getting that into Phothshop as shape layer for part of the artowrk in a trade show poster.

  • Can I import avchd videos from canon into Imovie'11

    can I import avchd videos from canon into Imovie'11

    actually the only error in the system logs I see is..
    11-02-27 10:59:49 AM iMovie[90311] NSEnumerateMapTable: map table argument is NULL

  • How do I import individual frames from iMovie into iPhoto?

    How do I import individual frames from iMovie into iPhoto? Or how do I export individual frames from iMovie into iPhoto? My final goal is to have a DVD of individual photos from a video I recently shot. Thanks

    Here is one way to do it, although you will see there could be variations.
    1) Open iMovie
    2) Start a new project - name it Stills for iPhoto (or a name of your choice)
    3) Go to your EVENT. Find the spot with the cursor that you want a photo of. Right-click (or control-click if you don't have a mouse) and select ADD STILL FRAME TO PROJECT.
    4) The photo should be in the Project called Stills for iPhoto.
    5) Right-click (control-click) on the photo and select REVEAL IN FINDER.
    6)When the finder window opens, right-click and select COPY. Go to your Desktop or a folder of your choice and right-click PASTE
    7) Drag the photo from your Desktop to iPhoto

  • How do i import a table from excel into dw8?

    I want to import a table from excel into a table in dw8, i
    just want the data inside the excel table to be imported to the
    table in dw8.
    The tables has the same stracture - number of rows and
    columns.
    is it possible?
    btw special paste is no good, since it copies the stracture
    of the table from excel which contains <td height="17">,
    which is not good coding - td doesn't support the height
    option.

    table without special paste:
    <table width="90%" border="1">
    <tr>
    <th scope="col"> </th>
    <th scope="col"> </th>
    <th scope="col"> </th>
    <th scope="col"> </th>
    <th scope="col"> </th>
    <th scope="col"> </th>
    <th scope="col"> </th>
    <th scope="col"> </th>
    <th scope="col"> </th>
    </tr>
    <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    </table>
    table with special paste(Text with structure):
    <table width="90%" border="1">
    <tr height="17">
    <td height="17" dir="rtl"
    align="right"> </td>
    <td dir="rtl" align="right"> </td>
    <td dir="rtl" align="right"> </td>
    <td dir="rtl" align="right"> </td>
    <td dir="rtl" align="right"> </td>
    <td dir="rtl" align="right"> </td>
    <td dir="rtl" align="right"> </td>
    <td dir="rtl" align="right"> </td>
    <td> </td>
    </tr>
    <tr height="17">
    <td height="17" align="right"> </td>
    <td align="right"> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr height="17">
    <td height="17" align="right"> </td>
    <td align="right"> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr height="17">
    <td height="17" align="right"> </td>
    <td align="right"> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr height="17">
    <td height="17" align="right"> </td>
    <td align="right"> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr height="17">
    <td height="17" align="right"> </td>
    <td align="right"> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr height="18">
    <td height="18" align="right"> </td>
    <td align="right"> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    </table>

  • How do I stop Numbers formulas from converting (/) into (÷) for hyperlinks. Ref Ver. 3.5.2

    How do I stop Numbers formulas from converting ( / ) forward slash into (÷) divide for hyperlinks. Ref Ver. 3.5.2
    I am trying to hyperlink to a dropbox url, but the numbers formula is automatically converting / into ÷, preventing the links from working.
    Thank you.

    Hi Merritt.B,
    If you are using HYPERLINK() everything goes inside quotes:
    HYPERLINK("https://discussions.apple.com/thread/6772428","This question")
    quinn

  • Import a Zip Code Field Into Numbers

    I'm sure this has been asked before, but I've done a couple of searches and can't find the answer.
    I often need to import a list of addresses into a spreadsheet for cleaning up. In Excel, when I do this, I "open" a text file and get the "import wizard." I can then format the zip code field as a text field and retain any leading zeros (e.g., 00678 is not converted to the number 678).
    How can I do this in Numbers?
    Message was edited by: Joel Mcintosh1

    Blazeland wrote:
    What if the data is of varying lengths? I data with 10, 12 or 13 digit numbers that sometimes have leading zeros. I can't open csv files into Numbers because it deletes the zeros and there is not standard length to the data.
    It's certainly not the reason explaining that you can't open the Numbers generated csv files.
    Numbers put a delimiter between values so their length is meaningless.
    The problem may be the value of the delimiter.
    As I wrote MANY times, if the decimal separator used by the running operating system is period, Numbers use comma as values delimiter.
    If the decimal separator is comma, Numbers use the semi-colon as values separator.
    Yvan KOENIG (from FRANCE mardi 24 mars 2009 21:13:18)

  • Importing table dump from oracle into sybase

    I was wondering if anyone has ever imported a table dump from oracle into sybase. I just tried it and it didn't work. I used TOAD to create my table dump file but when i imprted it into sybase using bcp in i got the following error
    cs_convert: cslib user api layer: common library error: The result is truncated because the conversion/operation resulted in overflow.
    CSLIB Message: - L0/O0/S0/N36/1/0:

    If you are looking for a basic/standard way to exchange data between Oracle and Sybase, use the CSV format.
    It is trivial to write a generic SQL*Plus script for Oracle to extract data from a table (or a SELECT) and spool this into a properly formatted CSV file.
    It is also just as easy to use Sybase Bulk Copy utility to load that CSV file into Sybase.
    There are also alternative methods. One would be to use Oracle's Heterogeneous Services. You can define a database link in Oracle that connects, via ODBC, to Sybase. And using this database link you can push (insert) data into Sybase.

  • Import Recording Session from Pyramix into Logic

    Hi,
    how to import a recording session from pyramix into Logic
    Is it possible via OMF/AAF export?
    Can I use a usb/fw harddrive with just one FAT32 Volume for Files Transfer from PC
    Who has experiences with OMF Import into Logic
    Cheers Markus

    Hi,
    how to import a recording session from pyramix into Logic
    Is it possible via OMF/AAF export?
    Can I use a usb/fw harddrive with just one FAT32 Volume for Files Transfer from PC
    Who has experiences with OMF Import into Logic
    Cheers Markus

  • Drag and drop from Contacts into Numbers not working - any solutions?

    I'm trying to get my Contacts into a Numbers spreadsheet. According to the Help files, I should be able to select the Contacts and simply drag them into a Numbers sheet (after deleting the default Table).  I've tried this many times over and the drag and drop feature doesn't seem to be working.  I can select the contacts and drag them over, but the little contact card remains red when I drag it into Numbers and never turns green to allow me to drop into Numbers. It's the same whether I'm trying to drag one contact or many contacts at the same time. I've also tried exporting a vcard and then dragging that file from my desktop into Numbers, but that doesn't work either.  I've tried quitting and reopening both applications, as well as restarting my computer.  I'm running OSX 10.8.3 and have installed all new software updates, so I'm just at a loss for what to try next. 
    Does anyone have any solutions for this problem, or an alternative way to get my Contacts into a Numbers file?
    Many thanks in advance!

    When I tried, it put up a dialog asking me if I wanted to allow Numbers access to my Contacts. Is it possible you tried this and dis-allowed it access?
    You might check, anyway. Open Security & Privacy System Prefs, select Privacy tab, and select Contacts from the list of items. Is Numbers listed and is it checked?
    Another way to get the contact information into the clipboard is to create an Automator workflow like this:
    Open Automator and select Workflow from the options presented.
    Drag in the above actions and set the properties as you like. For the Get Contact Information action, you must set the export format to Spreadsheet (tabs).
    For the new Text File action, I had to set the Encoding to Unicode (UTF-8) or it would fail.
    Select all the contacts you want and then click the Run button in Automator. You can then open the text file with Numbers.
    If you envision doing this often, start with an application instead of a Workflow and save it somewhere. Then, you can select your contacts and double-click the Application to export the contacts each time.
    The benefit of this method is that you can select all the fields you want to include (at least more than is provided in Drag and Drop).

Maybe you are looking for

  • Getting error while opening bex analyzer in BI?ple help me asap

    a critical program error occured the problem has to close ple refer to the trace forther onformation say ok SAP BExAnalyzer application has encountered a problem and needs to close.  We are sorry for the inconvenience. saihng ple tell the probelm to

  • Snapshot Report taking long time

    Hi, We have snapshot collection every 1 hour in our db and the process is taking 1/2 hour to run and it is the highest resource hog while it is running. what can we do to avoid this scenario ? Quick help ismuch appreciated. We use oem 11g for a 9.2.0

  • Problem with iDVD Chapter selection

    Hi everyone, I've a problem when burning a DVD. In the preview mode of iDVD, I can select the chapter I want using the scene selection menu, but once the DVD is burnt, every scene selection on my DVD player relaunches the DVD main menu (splash screen

  • Green frames when using AppleScript to export from QT

    Not sure if this is a QuickTime issue, h.264 issue, or an AppleScript issue, but i thought I'd start here since I know the least about AppleScript and have some clues to the problem. I'm creating an Automator workflow that requires a run AppleScript

  • Live monitoring of sip usage

    Regular PBX systems often times have a live monitoring tool you can use to see who is currently on the phone and who isn't and it operates in real time. Does Lync have a feature like this? We are rolling out a flow blown Lync platform and would like