Is there a way to simplify this formula?

=IF(A3=1,1300,
IF(A3=2,3300,
IF(A3=3,6000,
IF(A3=4,10000,
IF(A3=5,15000,
IF(A3=6,23000,
IF(A3=7,34000,
IF(A3=8,50000,
IF(A3=9,71000,
IF(A3=10,105000,
IF(A3=11,145000,
IF(A3=12,210000,
IF(A3=13,295000,
IF(A3=14,425000,
IF(A3=15,600000,
IF(A3=16,850000,
IF(A3=17,1200000,
IF(A3=18,1700000,
IF(A3=19,2400000,2400000)))))))))))))))))))

Well, Yvan posted an answer and it disappeared. Here's a replacement:
If you are only going to do this once, your formula is probably as good as you can do. If you are going to use it more than once in your document, then it makes sense to use a reference table and to lookup the answer in the reference table. Here's an example:
Jerry

Similar Messages

  • Is there a way to simplify this? applying functions to 16 channels - software trigger

    hey,
    at first I want to appologize for hurting everybodies eyes.
    Today I ended up with a pretty weird VI and I was wondering if there is any way to do this a littler easier.
    Basicly I want to acquire 16 channels from a device. Unfortunately the device doesn't support analog trigger, so I had to create a software solution. So, I m reading 100 samples on all of the 16 channels in a while loop and compare the first channel, if its value reaches a certain threshold. If it does I end the while loop and enter a for loop, which read 100 samples 10 times. Before exiting the for loop I seperate the 16 channels - so I end up with 16 different arrays of 10 x 100 samples. Then I reshape the Array in order to get a one dimensional array with 1000 samples. At that point I have to do that for every channel seperately. After that I add the 100 samples which I acquired in the while loop in the beginning (which was the trigger) to the 1000 Samples Array. I end up with a array for every channel, which is 1100 samples long.
    As you could see in the attached image, this looks pretty confusing in the end. Is there any way to make that easier and look nicer?
    I know, I could add functions to reshape the arrays in order to end up with an 3 dimensional array (16 channels x 10 x 100 samples) then I could process everything in a for loop - but I guess that would take longer to calculate in the end?!? Any good ideas on that, except buying new hardware with a analog trigger?
    Attachments:
    weirdlabv.jpg ‏131 KB

    as far as I know, my hardware only has memory for 4095 Samples -  when acquiring 16 channels at once, I am able to read chunks not bigger than 256. is this right?
    I am not sure, if I still have some DDT in my latest vi left when converting the sample points as arrays of doubles. I will check that tomorrow, can't remember how I did that in the end. But everything seems to work finde so far. Thank you.
    However, there are still some basic questions:
    I have different parts in my vi, which relate to each other. For example, I have a array which is loaded from a file & edited by the user.  When finishing editing this array the user presses a button and continues with a different part of the vi, which uses the entered data. Therefore a part of the vi should not run before a other is finished. I used a combination of a event structure and a message queue. Is there a simpler way to realize such a construct?
    Just was thinking about creating Sub-VIs - apparently I could get rid of the queues then.. will try that tomorrow..
    If I create an empty array in order to enter values by the user during runtime, the array size increases at the moment I enter a value. In case I entered a value in the wrong field und want to deleted that value again and reset the arrays size to the size it had (before I entered the value)  - how do I do that? There is the right-click-option 'reset to default value', but this only sets the value to 0 in an numeric array, not deletes that field (row, whatever..)

  • Is there any way to simplify this rules in ACE

    Hello Support Forum Members,
    i just create some ACL rules in cisco ACE 4710.
    here are some rules,
    class-map type http inspect match-any DENIED_URL
      2 match url .*.exe
      3 match url .*.php
      4 match url .*.asp
      5 match url .*.aspx
      6 match url .*.cgi
      7 match url .*.pl
      8 match url .*.bat
      9 match url .*.cfm
      10 match url .*.ihtml
      11 match url .*.las
      12 match url .*.lasso
      13 match url .*.lassoapp
      14 match url .*.phtml
      15 match url .*.rna
      16 match url .*.r
      17 match url .*.shtml
      18 match url .*.stm
      19 match url .*.ini
      20 match url .*.dll
      21 match url .*.htx
      22 match url .*.htw
      23 match header mime-type video\*
      24 match header mime-type audio\*
      25 match content ".*[bB][fF]6[eE][fF][fF][fF]3[-]4558[-]4[cC]4[cC][-][aA][dD][aA][fF][-][aA]87891[cC]5[fF]3[aA]3.*"
      26 match content ".*[lL][iI][sS][tT][cC][tT][rR][lL]\x2e[lL][iI][sS][tT][cC][tT][rR][lL][cC][tT][rR][lL]\x2e1.*"
      27 match url .*.ico
      28 match url .*etc.*
      29 match url .*wp[-].*
      30 match request-method rfc trace
      31 match url /images
      32 match request-method rfc delete
      33 match request-method rfc options
      34 match request-method rfc put
      35 match url /status
      36 match request-method rfc head
      37 match request-method rfc connect
    class-map type http inspect match-any URL_TO_PERMIT
      4 match request-method rfc get
      5 match request-method rfc post
      7 match header length request range 200 200
      12 match url /stripe/.*
      13 match url /stripe-string/.*
      15 match url /
      16 match url /foobar/agent.*
    my query is, can i simplify this rule become some few of lines.?
    my need is : all access to /foobar/agent, /stripe-string/, /stripe with get and post method are allowed, also with situation server response is 200 200, other will be crush.
    it's possible i simplify the rule in ace.
    many thanks in advanced
    hamzah

    Hi Hamzah,
    If you know exactly what you need to allow then you can be as specific as you can be and other than that if you need to deny everything then you can generalize. Now in your case class-map "URL_TO_PERMIT" you have match condition  "/" which basically matches all other statments like /stripe/.*, /stripe-string/.*,/foobar/agent.*. Either you remove that or there is no use of other statements to put in along with "/" unless it is like test.com/ or foobar.com/ or stripe.com/ etc.
    Also, you want 200 server response to be allowed but in match condition you have mentioned "request range". Please change that as well.
    Regards,
    Kanwal

  • Is there a way to create a formula to sum all fields in which a secondary field is a specific string?

    I would like to be able to create a spreadsheet with several different ways of looking at financial results.
    So, while I might have my typical budget prepared by functional area, I would also like to identify whether a line item is a weekly, monthly, or annual expense. So, column A will include a functional header
    Column B the amount itself
    Column C will be the frequency.
    Is there an easy way to create a Sum Field that pulls the info from all fields in which column B = Weekly?
    More importantly, is there a way to do this across multiple tables within a single sheet? I am breaking out divisions into individual tables and performing similar tasks for each division, and then summarizing for the full organization in a separate table.
    I am using Number '09 2.1
    Many thanks,
    Keith

    The more generalized solution is to modify the Summary Table as follows:
    - Add a header row to give the name of the source table for each column (the name you give each table should match the name in the header for each column)
    - use the following formula in B2:
    "=SUMIF(INDIRECT("'"&B$1&"' ::"&"Frequency"), "="&$A2, INDIRECT("'"&B$1&"'::"&"Amount"))"
    fill down, then select B2 - B4, then fill across
    In the "Total" column for the Summary table paste the formula:
    E2:  "=SUM(B2:D2)"
    Fill down
    I hope this helps
    Wayne

  • TA25361 I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro.  Is there any way to recover this info?  Some documents can be opened and resaved with textedit, but not my database with all important addres

    I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro.  Is there any way to recover this info?  Some documents can be opened and resaved with textedit, but not my database with all important addresses.

    I tried Peggy's List > Select All > Copy > Paste into an AW spreadsheet suggestion.
    In my case, pasting into the spreadsheet lost all text formatting (mostly text set to bold). The results of formulas were pasted, and checkboxes were pasted as "on" or "off". The DB did not contain any pop-up menus or radio buttons, but I expect they would transfer as a number showing the list position of the chosen item.
    Pasting the copied List view data into a Numbers table gave a result similar to that with AppleWorks. I selected B2 as the target cell (for top left cell of the pasted data) to avoid any effects of posting into a header row or column. Bold and regular text formatting looked the same as it had in AW's List view.
    Based on that, I'd slip the 'paste into an AppleWorks Spreadsheet step, and paste directly into a Numbers Table.
    Regards,
    Barry

  • In iPhoto9, I used to be able to duplicate a photo and put it in two different events.  Is there a way to do this in iPhoto11?

    In iPhoto9, I used to be able to duplicate a photo and put it in two different events.  Is there a way to do this in iPhoto11?

    In your description you say the first document opens as the Title you gave it.
    Templates always open as Untitled so it sounds like you have saved a regular document, perhaps into your templates folder which is possible.
    Since you have already worked on it and it has been previously saved, Lion will now Save for you and Save a Version is available
    The other document does open as Untitled so sounds like a real template and as Peggy has pointed out will not have either Revert nor Save a Version until you Save it and have changed something in it.
    This is a classic example of just how Apple's supposedly "simplification" of the process, is leading to confusion of what has happened. That the conditions and resulting actions from those conditions is so convoluted says it all.
    It all reminds me of the Monty Python Life of Brian sketch with the "simplified" John Cleese instructions to the class, as to if you have a brother in an older dorm whether to hang your hat and bag on the hooks provided. The trouble is Apple does not get the joke, that it is transforming itself into a frequently self contradictory bumbling bureacracy. The price of unchallenged self appointed geniushood.
    The incoherent half baked stumbling juggernaut has reached new triumphs with its edict on enforced Sandboxing on developers when it is unable to follow even its own instructions.
    Peter

  • Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    You can seach the net for solutions like this one http://appletvvpn.com/how-to-connect-apple-tv-2-to-vpn/ another idea is to use a PC as the control and fit that with a wireless card and set up a ad hoc wireless network that the Apple TV uses. 

  • After I watch a podcast I delete it. When I go back in the next day it shows 500-600 episodes I have to delete manually. So 2 questions....  Is there a way to stop this from happening and is there a way to delete all. This is getting frustrating.

    After I watch a podcast I delete it. When I go back in there are 500-600 episodes and I have to delete each one manually. Is there a way to stop this from happening or is there a way to delete all at once. It's getting very frustrating.

    Had all these issues.  Bit the bullet and downloaded the Downcast App ($1.99).  Much better expereince and a lot more features.  Sad.

  • When I attempt to open a PDF file I saved from a website, I get the message "There was an error opening this document. The file is damaged and could not be repaired." Is there any way to correct this problem?

    When I attempt to open a PDF file I saved from a website using Safari, I get the message "There was an error opening this document. The file is damaged and could not be repaired." When I save the same PDF file using FireFox it opens up immediately. Is there any way to correct this problem with Safari?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • When I try to print a drawing imported from my ipad iphoto crops it. Is there any way to stop this?

    When I try to print a drawing imported from my ipad iphoto crops it. Is there any way to stop this?

    Usual cause: printing at the wrong aspect ratio for the image - trying to print 5 x 3 in the shape of a 6 x 4 for instance.
    Regards
    TD

  • When I save photos or videos from my iPhone 4S to my PC they are all sideways.  Is there a way to prevent this from happening?  All are taking with the phone in portrait mode.

    When I save photos or videos from my iPhone 4S to my PC they are all sideways.  Is there a way to prevent this from happening?  All are taken with the phone in portrait mode.

    Shot videos ONLY in landscape. For photos choose what's you like. Maybe you have to rotate photos on PC. What's your operating system?

  • I'm trying to add a playlist manually to my iPhone 4. It won't let me because it's trying to delete all of the music currently on my iPhone. Is there any way to prevent this from happening in order to start manually updating it?

    I'm trying to add a playlist manually to my iPhone 4. It won't let me because it's trying to delete all of the music currently on my iPhone. Is there any way to prevent this from happening in order to start manually updating it?

    Are you leaving the box unchecked to Manually manage music & videos? You don't need to to add anything to the iPhone.
    Simply drag the playlist to the iPhone to manually add it.

  • When I listen to music on my iPhone and pause it, if I come back to it later, the playlist has started over. I have a 4S running on iOS 7.0.4. Is there any way to keep this from happening so that my playlist will start off where I last was?

    When I listen to music on my iPhone and pause it, if I come back to it later, the playlist has started over. I have a 4S running on iOS 7.0.4. Is there any way to keep this from happening so that my playlist will start off where I last was?

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • I bought my iphone 5s a week before and now its volume "up" button is not working when pressed.Does anybody know what to do to make it work?I have a one year warranty.Should i give it to apple retail shop or is there any way to solve this problem?

    I bought my iphone 5s a week before and now its volume "up" button is not working when pressed.Does anybody know what to do to make it work?I have a one year warranty.Should i give it to apple retail shop or is there any way to solve this problem?

    IF it is a manufacturing defect and you bought the device from Apple or an authorized Apple retailer, then take it into Apple.

  • I made a dumb decision to 'Erase Free Space' on my drive. I now have no free space, I realize because it wrote 0's over all my free space. Is there a way to undo this??? Help please I can't save any documents now! Thanks in advance all, it is truly apprec

    I made a dumb decision to 'Erase Free Space' on my drive. I now have no free space, I realize because it wrote 0's over all my free space. Is there a way to undo this??? Help please I can't save any documents now! Thanks in advance all, it is truly appreciated. how can find the hidden temporary files using the terminal what do i type in?

    It's more likely a failed Erase Free Space, which creates a huge temporary file; that's why it looks like you have no more available drive space. You can recover from this. See these links
    https://discussions.apple.com/message/10938738#10938738
    http://www.macgeekery.com/tips/quickie/recovering_from_a_failed_secure_erase_fre e_space 
    Post back if you need any help with this.

Maybe you are looking for

  • Iphoto takes at least 10 minutes to open

    This is really dumb. I have 5000 photos and it takes more than 10 minutes to open Iphoto. I wanted to show some pictures this weekend and I was embarrassed to tell my sister that it would take like 15 minutes to open them. I would only expect this no

  • From a Clean install of 10.4 - 10.4.7 crash, again...

    I had an earlier problem of my install of 10.4.7 crashing , causing a complete drive loss. But getting past that, I had a working install of 10.4.x from the original disks that came with my G5. I thought "hey lets see if it was something wrong with m

  • No camera connected!!!

    Hi, I have an old powerbook G4 with no Isight or other built in. I bought a Webcam "Lili" made by "united pepper". It runs with the "Webcam Monitor" application that comes with the camera. However neither Ichat nor Skype recognise it. They both give

  • DPMAgentInstaller failed with errorcode =0x80070643

    I've been looking all over the place for an answer to this. I've found lots of postings about it, but no answers that work for me. I recently upgraded from System Center DPM 2012 SP1 to 2012 R2. I've been upgrading all the clients. I've done it succe

  • Unresolved Past Due Balance

    On Dec 6 I called in related to overages on my account.  The rep indicated she would credit the overages.  That did not happen.  I have since called in multiple times asking them to listen to the call. They have said they will honor it if that is wha