A very difficult challenge in Numbers

Morning.
I have a Numbers table, that calculates savings for future investments. But the investments take place surprisingly. That means, there are expenditures where no adequote savings has been done. In such case I want to diminish all the other savings proportionally.
Example:
For savings A monthly $100 are put aside. Savings in an amount of $2'000 has been done.
For savings B monthly $200 are put aside. Savings in an amount of $1'000 has been done.
For savings C monthly $50 are put aside. Savings in an amount of $400 has been done.
In summa there are savings in an amount of $3'400. But if now occasionally  $1'000 of investments C must be done, the savings C are
in Minus by $600.
But savings can not be in Minus. Therefore the Minus must be absorbed by the savings A and B proportionally, e.g. A reduces to $1'600 and B reduces to $800.
How can I do that in Numbers.app?
IF (at least a cell is less than 0) THEN (set all these cells to 0 and sum the amounts lesser than 0) THEN (make the ratio of such amounts lesser the 0 to the sum of the positive savings) THEN (diminish all postitive savings by these ratio).
How to achieve this by a valid Numbers formula?
Kind regards, Friedrich

yes - you could use zsh, but why not use builtin ksh (for support)?
I keep all root history files different in discrete files so you don't accidentally have someone that tries to do a command recall on pattern matching - yielding different than expected results.
it's very simple, but has the obvious caviats if you set any particular user's shell to something other than Bourne static linked -
The syntax and variables can be changed to meet your own needs, near the top of my .profile I insert:
if [ ! -z "$TERM" -a -t 0 ] ; then
startdate=`date +%H%M%m%d%Y`
HISTFILE=$HOME/history/.sh_history.$startdate.`who am i|awk '{print $1"." $2}'|tr '/' '_'` ; export HISTFILE
fi
just setup a history directory for each user and they'll log there whenever they have a term

Similar Messages

  • Premium subscribers beware! Spotify make it very difficult for you to cancel!

    hpguru wrote:
    I canceled my subscription easily month ago. Deleted my credit card details from Spotify. I still love service.
    This is because you have an old login without Facebook. Users that are required to log in with Facebook are having trouble canceling. Spotify has required a Facebook account for almost 6 months now and nothing has been done about these cancellation problems faced by Facebook-required users.

    I write this as someone who has had the unfortunate experience of trying to cancel my subscription after getting Spotify premium. Spotify themselves make it very, very difficult for you to cancel. It is an absolute nightmare. Some words of advice would be to not leave it to the last day or so before it runs out to try and cancel your subscription. You need to leave plenty of time to get it sorted before they take another £9.99 from your bank account. I really wish I had read this forum BEFORE I had subscribed and seen the vast numbers of dissatisfied users unable to cancel....I would never have done it in the first place! Don't be fooled into thinking you are inputting an incorrect password at the final hurdle when you are cancelling - you are not - they deliberately do this to make things awkward. You have to then fill in a contact form (which incidentally says could take 3 days to respond to - hence my earlier mention that you shouldn't leave it too late to start to cancel.) Because it's not a direct debit, it can't be cancelled easily by your bank either. After speaking to my bank, the only way they could do it for me was to cancel my account and open a new one! In the end, what worked for me was having to download a new internet browser and go through that. Luckily for me that worked, but I see from on here that that doesn't work for everyone. I loved Spotify and was a big fan, and my cancellation was only going to be a temporary thing untill I had a bit more money. But now that's it. I'm done with Spotify for good. It's absolutely disgusting and to my mind is almost corporate theft what they are doing in making it virtually impossible to cancel. Disgusting.    

  • HT204406 I am having a very difficult time with accessing my music from the cloud.  I need to have itunes open on my laptop in order for it to work.  And as soon as I close out itunes on my laptop, it gives me a warning that all users will be logged out. 

    I am having a very difficult time with accessing my music from the cloud.  I need to have itunes open on my laptop in order for it to work.  And as soon as I close out itunes on my laptop, it gives me a warning that all users will be logged out.  Help!!!

    Where are iTunes files located?
    No, I do not mean just the music.  Copying just the media/music files or the media folder creates problems.

  • How can I restore my playlist folders in itunes? They are there but the individual song titles aren't listed. They are only listed by album. This makes it very difficult to find songs in my playlist.  Also,when I click on music, it will not list options.

    My itunes account is messed up. How can I restore my playlist folders in itunes? The list's are there but the individual song titles aren't. They are only listed by album. I can only see the song titles as they are played at the top of my itunes. This makes it very difficult to find songs in my playlist.  Also when in the itunes store, I am not able to see music genre choices, or search for a song or group.
    Thank you

    Hi dones49,
    It sounds like your issue here is that iTunes can not find the files for some of the songs you have brought into it. This happens occasionally even if the songs have not been moved from the location that iTunes places them on import or purchase. When you try to use the song, iTunes prompts you to find the file, as you have seen.
    To find the file, use the information in this article to navigate through the iTunes media folders -
    Locate and organize your iTunes files
    If you are still unable to locate the files, you may need to download them from the iTunes store again, or rip them from your CDs. See this article for assistance with downloading your past purchases -
    Download past purchases
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • My problem is the graphs of my audio recordings in the arrange window are so small it makes accurate editing very difficult.

    My problem is the graphs of my audio recordings in the arrange window are so small it makes accurate editing very difficult.

    Try the waveform zoom slider. Recording louder just to get a better visible waveform would be, well, silly.
    From the manual: (click on links to see pics)
    To change the zoom level using the Waveform Zoom button 
    Click-hold the Waveform Zoom button. A slider appears.
    http://documentation.apple.com/en/logicpro/usermanual/Art/S01/S0185_WaveZoom.png
    Drag the slider. As you do, the waveform shown in all audio regions, and in the Beat Mapping track, is increased or decreased in size.
    http://documentation.apple.com/en/logicpro/usermanual/Art/S09/S0931_CUS_Waveform Zoom2.png 
    Note: This is a purely visual function. The amplitude (level) of the waveform is not affected.
    it's here (scroll 3/4 down):
    http://documentation.apple.com/en/logicpro/usermanual/index.html#chapter=4%26sec tion=6%26tasks=true

  • Hello Everyone, I just bought a HP Photosmart Premium All-in-One Printer - C309g but i find it very difficult to connect to it via BLUETOOTH and WIRELESS on my IPAD 3...i will be very greatfull if i'll get a solution as soon as possible. Thanks

    Hello Everyone, I just bought a HP Photosmart Premium All-in-One Printer - C309g but i find it very difficult to connect to it via BLUETOOTH and WIRELESS on my IPAD 3...i will be very greatfull if i'll get a solution as soon as possible. Thanks

    Hi Tomiwa,
    You cannot print from the iPad to that printer. AirPrint and Bluetooth are completely different.
    There may be apps you can buy that will enable using that printer, but that is not an ideal solution.
    That particular printer has had many bad reviews, and is unreasonably expensive for its features. Considering that you just bought the printer, as well as its lack of AirPrint, I suggest you return it and buy a printer that supports AirPrint.

  • When I phone people can hear me without any problem, but I hear very very bad. The sounds is metallic and it is very difficult to understand. Have anyone idea of what is it about. I guess is not a software problem but I am not an expert. Thanks in advance

    When I phone people can hear me without any problem, but I hear very very bad. The sounds is metallic and it is very difficult to understand. Have anyone idea of what is it about. I guess is not a software problem but I am not an expert. Thanks in advance

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Firefox > Preferences > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    See also:
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *https://support.mozilla.org/kb/Images+or+animations+do+not+show

  • Having very difficult time setting up and running time capsule and airport

    I am having a very difficult time setting up and running airport express and time capsule. My time machine is not being recognized by my mac. The amber light keeps blinking. I'm ready to stsrt over.

    #3 for itunes streaming. I reset the base station and eventually was able to get the backup working and now my green light is on. Next I'd like to be able to play itunes using Airport Express and have connected to my stereo receiver in another room.
    AirPort Express Base Station (AX) - iTunes Setup
    Either connect to the AX's wireless network or connect directly, using an Ethernet cable, to the Ethernet port of the AX, and then using the AirPort Utility in "Manual Setup" mode, make the following changes:
    AirPort Utility > Select the AX > Manual Setup > AirPort > Wireless
    Wireless Mode: Join a wireless network
    Network Name: <existing TC's wireless network>
    Wireless Security: <select the encryption type of the existing wireless network>
    Wireless Password: <enter the existing wireless network password>
    Verify Password: <re-enter the existing wireless network password>
    AirPort Utility > Select the AX > Manual Setup >Music
    Enable AirTunes (checked)
    iTunes Speaker Name: <enter desired speaker name>
    iTunes Speaker Password: (optional)
    Verify Password: (optional)
    Click Update to write the new settings to the AX

  • Since upgrading to iphoto 11 I,m having difficulty viewing my photos in edit mode. On the quick scan of info mode the photos appear sharp, however in edit mode the edges blur up making it very difficult to edit properly, What is the problem here?  I never

    Since upgrading to iphoto 11 I,m having difficulty viewing my photos in edit mode. On the quick scan of info mode the photos appear sharp, however in edit mode the edges blur up making it very difficult to edit properly, What is the problem here?  I never

    Marisa, you stand a better chance of getting an answer concerning iPhoto by posting this question in the iPhoto forum
    https://discussions.apple.com/community/ilife/iphoto

  • A very difficult problem of JTreeTable

    I am now creating a xml editor by the use of swing. I have drafted an interface and uploaded to this http://fungho.uhome.net/temp/SAMPLE.jpg
    This interface has the tree with the following xml schema:
    <book version="2" language="English">
    <content number="1">How are you?</content>
    </book>
    In my application, there are 2 enpandedIcons for each element, the first one is for the expansion and contraction of the tree structure, while the second one is for the expansion and the contraction of the attributes of the element. For the words between <content> and </content>, "How are you?" in this example, are displayed in the white area benenth the 'content' area. At the same time, there are 2 columns which are not used in the interface, this columns are used for other purpose.
    In view of this, I know JTreeTable is used. However, I don't know how to add one more tree in each node. Moreover, the background color seems to be very difficult to implement... Hope you can have some suggestions! Thanks!
    Stephen

    Vampire,
    Welcome to Apple discussions.
    It sounds like you either have a conflict with a keystroke expander or with Pages built-in auto-correction feature. To test this, try shutting off the auto-correction by clicking on Pages > Preferences > Auto-Correction > then UNcheck Symbol & Text Substitution. Let us know if that works.
    -Dennis

  • At times, the type in the bookmarks toolbar as well as the tabs changes to white with a drop shadow on a white background, making it very difficult to read. I do not know what it causing the colors to change. Is there any way to fix this?

    At times, the type in the bookmarks toolbar as well as the tabs changes to white with a drop shadow on a white background, making it very difficult to read. I do not know what it causing the colors to change. Is there any way to fix this?

    quick test based on screendump from your picture
    1: hue & saturation : master sat -100
    2:levels : input white=67
    OK ?

  • Any suggestions on calculating with very large or small numbers?

    It seems that double values are about 17 decimal places (10e17) in precision.
    Is there a way in iPhone calculations to get more precision for very large and small numbers, like 10e80 and so forth? I know that's more than the entire number of atoms in the universe, but still.
    I tried "long double" but that didn't seem to make any difference.
    Just a limitation?
    Thanks,
    doug

    Hmmm... maybe I was just having a problem with my formatted string then?
    I was using the NSString %g format, which is supposed to print in exponential notation if the number is greater than 1e4 or less than 1e-4, or something like that.
    But I was not getting anything greater exponents than 1e17 and then I was apparently getting overflows because the number were having negative mantissas.
    All the variables involved were double...
    How did you "look at" z?
    Thanks,
    doug

  • Would like to "enlarge" type size, very difficult for me, please tell me how...thank you! gretchen

    Would like to enlarge the "type size". it is way too small fro me and very difficult to read. thank you! gretchen

    You can use one of these extensions to set a default font size and page zoom on web pages:
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • Create view...very very difficult....

    I have this view:
    CREATE OR REPLACE VIEW ANAGR ( SITE_ID,
    COD_ID, NOP, ADDRESS, PROP) AS
    SELECT SITE.SITE_ID, COD_IMM.COD_ID,
    'AA',
    SITE.ADDRESS1, LS.PROPRIETA
    FROM LS, COD_IMM, SITE, RM, DP
    WHERE RM.LS_ID = COD_IMM.LS_ID
    AND SITE.SITE_ID = COD_IMM.SITE_ID
    AND LS.LS_ID = RM.LS_ID
    AND SITE.SITE_ID = RM.SITE_ID
    AND RM.DV_ID = DP.DV_ID
    AND RM.DP_ID = DP.DP_ID
    AND (DP.FLAG_GR='2' OR
    (DP.FLAG_GR='1' AND COD_IMM.ADMIN IN ('AAAA','TTTT')))
    GROUP BY SITE.SITE_ID, COD_IMM.COD_ID,
    'AA',
    SITE.ADDRESS1,
    LS.PROPRIETA
    TABLE cod_imm is create every night with a stored procedure:
    (INSERT INTO COD_IMM (COD_ID,LS_ID,BL_ID,SITE_ID,ADMIN)
                             SELECT BL.COD_CONV_BL||'-'||RM.LS_ID COD_ID ,RM.LS_ID,RM.BL_ID,RM.SITE_ID, BL.AMMINISTRATORE
                             FROM RM,BL
                             WHERE RM.BL_ID=BL.BL_ID
                             AND BL.COD_CONV_BL IS NOT NULL
                             AND RM.SITE_ID IS NOT NULL
                             AND RM.LS_ID IS NOT NULL
                             GROUP BY BL.COD_CONV_BL,RM.LS_ID,RM.BL_ID,RM.SITE_ID, BL.AMMINISTRATORE;
                             COMMIT;
    COD_ID...........LS_ID........BL_ID.......SITE_ID.......ADMIN
    A00-0-000001.....000001........000022......000002........AAAA
    A00-1-000001.....000001........000023......000002........AAAA
    A00-2-000001.....000001........000024......000002........AAAA
    A00-3-000001.....000001........000025......000002........AAAA
    B00-0-123456.....123456........123111......000009........AAAA
    B00-1-123456.....123456........123112......000009........AAAA
    S00-0-567890.....567890........222222......567890........AAAA
    T01-0-567888.....567888........222233......567890........AAAA
    T01-1-567888.....567888........222234......567890........AAAA
    R01-0-111111.....111111........000003......999999........AAAA
    R01-1-111111.....111111........000004......999999........AAAA
    R01-2-111111.....111111........000008......999999........AAAA
    Z01-0-333333.....333333........333333......333333........AAAA
    the cod xxx-y is a autoincrement for each bl_id
    TABLE SITE:
    SITE_ID PRIMARY KEY
    TABLE LS
    LS_ID PRIMARY KEY
    TABLE DP:
    DV_ID PRIMARY KEY
    DV_ID
    COR
    DOM
    TEM
    FEN
    ALA
    ALB
    ACE
    TABLE RM (25000 RECORDS):
    RM_ID PRIMARY KEY
    BL_ID FK ON BL
    SITE_ID FK ON SITE
    LS_ID FK ON LS
    DV_ID FK ON DP
    RM_ID......BL_ID.......SITE_ID.........LS_ID.......DV_ID
    0001.......000022.......000002.........000001.......COR
    0002.......000023.......000002.........000001.......DOM
    0003.......000024.......000002.........000001.......INT
    0004.......000025.......000002.........000001.......TEM
    0009.......123111.......000009.........123456.......COR
    0010.......123112.......000009.........123456.......FEN
    0020.......123113.......000009.........123456.......DOM
    0031.......222222.......567890.........567890.......TEM
    0035.......222233.......567888.........567888.......TEM
    0036.......222234.......567888.........567888.......FEN
    0037.......000003.......999999.........111111.......ALB
    0038.......000004.......999999.........111111.......ACE
    0042.......000008.......999999.........111111.......ALA
    0055.......333333.......333333.........333333.......FEN
    in my view I have these values:
    COD_ID...........SITE_ID...NOP.....ADDRESS.....PROP
    A00-0-000001.....000002....AA......SSSSSS.......XX
    A00-1-000001.....000002....AA......NNNNNN.......XX
    A00-2-000001.....000002....AA......CCCCCC.......YY
    A00-3-000001.....000002....AA......CVVVVV.......DD
    B00-0-123456.....000009....AA......RRRRRR.......XX
    B00-1-123456.....000009....AA......RRRRRR.......XX
    S00-0-567890.....567890....AA......RRRRRR.......XX
    T01-0-567888.....567890....AA......RRRRRR.......VV
    T01-1-567888.....567890....AA......RRRRRR.......BB
    R01-0-111111.....999999....AA......RRRRRR.......XX
    R01-1-111111.....999999....AA......FFFFFF.......XX
    R01-2-111111.....999999....AA......RRRRRR.......XX
    Z01-0-333333.....333333....AA......RRRRRR.......XX
    BUT I'D LIKE TO GET THESE VALUES:
    COD_ID...........SITE_ID...NOP.....ADDRESS.....PROP
    A00-0-000001.....000002....EMS......SSSSSS.......XX
    A00-1-000001.....000002....EMS......NNNNNN.......XX
    A00-2-000001.....000002....EMS......CCCCCC.......YY
    A00-3-000001.....000002....EMS......CVVVVV.......DD
    B00-0-123456.....000009....EMS......RRRRRR.......XX
    B00-1-123456.....000009....EMS......RRRRRR.......XX
    S00-0-567890.....567890....TIM......RRRRRR.......XX
    T01-0-567888.....567890....FIN......RRRRRR.......VV
    T01-1-567888.....567890....FIN......RRRRRR.......BB
    R01-0-111111.....999999....EMS......RRRRRR.......XX
    R01-1-111111.....999999....EMS......FFFFFF.......XX
    R01-2-111111.....999999....EMS......RRRRRR.......XX
    Z01-0-333333.....333333....FIN......RRRRRR.......XX
    I'd like to get these values in col NOP:
    - IF cod_id has DV_ID <> 'FEN' AND DV_ID <> 'TEM' THEN NOP='EMS' (111111)
    - IF cod_id has just DV_ID=FEN THEN NOP='FIN' (333333)
    - IF cod_id has just DV_ID='TEM' then NOP='TIM' (567890)
    - if cod_id has DV_ID='TEM' or DV_ID='FEN' or DV_ID in ('FEN','TEM') but in this cod_id
    exists at least an other DV_ID <> from 'FEN' and 'TEM' then NOP='EMS' (000001), (123456)
    - if cod_id has just DV_ID='TEM' and DV_ID='FEN' then NOP='FIN' (567888)
    I tried with this code but it doesn't run correctly:
    CREATE OR REPLACE VIEW ANAGR ( SITE_ID,
    COD_ID, NOP, ADDRESS, PROP) AS
    SELECT SITE.SITE_ID, COD_IMM.COD_ID,
    case when DP.dv_id <> 'FEN' and DP.dv_id <> 'TEM' then 'EMS'
                   WHEN DP.dv_id = 'TEM' AND COUNT(DISTINCT DP.dv_id)=1 then 'TIM'
                   WHEN DP.dv_id = 'FEN' AND COUNT(DISTINCT DP.dv_id)=1 then 'FIN'
                   WHEN DP.dv_id = 'FEN' and DP.dv_id = 'TEM' THEN 'FIN'
                   WHEN DP.dv_id = 'FEN' OR DP.dv_id = 'TEM' AND COUNT(DISTINCT DP.dv_id)> 1 THEN 'EMS'
                        ELSE 'EMS' END,
    SITE.ADDRESS1, LS.PROPRIETA
    FROM LS, COD_IMM, SITE, RM, DP
    WHERE RM.LS_ID = COD_IMM.LS_ID
    AND SITE.SITE_ID = COD_IMM.SITE_ID
    AND LS.LS_ID = RM.LS_ID
    AND SITE.SITE_ID = RM.SITE_ID
    AND RM.DV_ID = DP.DV_ID
    AND RM.DP_ID = DP.DP_ID
    AND (DP.FLAG_GR='2' OR
    (DP.FLAG_GR='1' AND COD_IMM.ADMIN IN ('AAAA','TTTT')))
    GROUP BY SITE.SITE_ID, COD_IMM.COD_ID,
    dp.dv_id,
    SITE.ADDRESS1,     
    LS.PROPRIETA
    Create this view is very difficult for me....
    Could you help me?
    Thank you very much!!!

    You've posted something like this before haven't you. To be honest it seems a bit like gibberish to me, but then we all understand our own system's business requirements best.
    Given that I'm not quite sure what it is you want, I think some variation on what I show below may or may not be what you're looking for.
    Good luck, APC
    SQL> CREATE TABLE g1 (cod number, dv_id VARCHAR2(3))
      2  /
    Table created.
    SQL> INSERT INTO g1 VALUES (1, 'APC')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (2, 'FEN')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (3, 'TEM')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (4, 'APC')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (4, 'FEN')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (5, 'APC')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (5, 'TEM')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (6, 'TEM')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (6, 'FEN')
      2  /
    1 row created.
    SQL>
    SQL> CREATE OR REPLACE VIEW v1 AS
      2  SELECT cod, sum(decode(dv_id, 'FEN', 1, 'TEM', 2, 4)) AS r
      3  FROM   g1
      4  GROUP  BY cod
      5  /
    View created.
    SQL>
    SQL> SELECT g1.cod, g1.dv_id, decode(v1.r, 4, 'EMS'
      2                                      , 1, 'FIN'
      3                                      , 2, 'TIM'
      4                                      , 5, 'EMS'
      5                                      , 6, 'EMS'
      6                                      , 3, 'FIN'
      7                                      , 'DEF' ) AS nop
      8  FROM   v1, g1
      9  WHERE  g1.cod = v1.cod
    10  /
           COD DV_ NOP
             1 APC EMS
             2 FEN FIN
             3 TEM TIM
             4 APC EMS
             4 FEN EMS
             5 APC EMS
             5 TEM EMS
             6 TEM FIN
             6 FEN FIN
    9 rows selected.
    SQL>

  • Just downloaded photoshop cc on my pc, when using the camera raw filter noticed there are no descriptions for the sliders! Very difficult to edit photos. Already checked preferences.

    Just downloaded photoshop cc on my pc, when using the camera raw filter noticed there are no descriptions for the sliders! Very difficult to edit photos. Already checked preferences. Anyone else have this issue?

    They should be labeled....

Maybe you are looking for

  • No spry in IE at all (other browsers work fine)

    I have a problem with a webpage I'm designing: when browsing it under FF or opera, everything works as it should: I get dynamic tables, tabbed content for user preferences, etc. However, when using IE, not only does nothing load, but also any tables

  • How NOT to restrict no of rows from two tables

    I have two identical tables Invoice and Payment. The only difference is Invoice_id,Invoice_Amt and Payment_id,Payment_Amt columns that shows different ids and amounts. The bank_ids, names, account_types are same. Invoice table has 3 rows and Payment

  • Runing Forte Runtime Clients using a Firewall

    Has anybody had to deal with have Forte runtime clients use a firewall? Who did you configure the firewall to allow Forte runtime clients to talk to the deployed application on the other side of the firewall? Is there any way to configure your deploy

  • Windows 8 auto updates

    I purchased an ACER laptop with windows 8 last week. I was previously using a laptop with Vista. Last night when I decided to shut down, I noticed the message indicating updates were being downloaded and I should not shut down until completed. I've n

  • Why does my iMessage show my email instead of my number?

    I went on Message>Send & Receive>Signed Into my Apple ID & all that shows was my number & email. My phone number was in gray font & couldn't be clicked. The only  option they let me use was my email. Why can't I use my number????? People I text can o