+ Reply to Thread
Results 1 to 15 of 15

function that will generate a price based on three fields

  1. #1
    Registered User
    Join Date
    07-06-2007
    Posts
    70

    Unhappy function that will generate a price based on three fields

    Does any one have any ideas:

    I'm a graphic designer and i'm trying to build a spreadsheet that will help me in doing my accounts.

    Ok, so i'm trying to set up a function that will generate a price based on three fields:

    Lamination:YES or NO
    Duplex: YES or NO
    Stock: Around 14 different stock options.

    I had it working using a nested IF but I ran out of the 7.

    I then tried using CONCATENATE using "&" to seperate but excel said the formula was too long.

    I'm Lost!
    Last edited by cjconnor24; 07-06-2007 at 02:44 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Post a sample with expected results

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    07-06-2007
    Posts
    70
    Thanks for such a quick reply. I've just this minute signed up.

    Do i just attach my file?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Yes. Excel files need to be zipped. USe the paperclip symbol on the toolbar when your replying

    VBA Noob

  5. #5
    Registered User
    Join Date
    07-06-2007
    Posts
    70
    hopefully should have the file attached
    Attached Files Attached Files

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Does this help

    VBA Noob
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-06-2007
    Posts
    70
    Quote Originally Posted by VBA Noob
    Does this help

    VBA Noob
    I have no idea what those functions are doing however that is exactly what i've been trying to do. You've made my weekend!

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

  9. #9
    Registered User
    Join Date
    07-06-2007
    Posts
    70
    Does anyone have anytime that they could tell me what is going on there? I'm baffled by how good that is - all i need to do is try to incorporate this into my actual account spreadsheet.

    im not too sure what VLOOKUP actually does?

    Does ISNA just look for #N/A ?

  10. #10
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Take a look at blue links for more info

    If you still need more help then post back

    Yes the if statement uses isna to check for #N/A errors

    VBA Noob

  11. #11
    Registered User
    Join Date
    07-06-2007
    Posts
    70
    Fantastic - totally got the hang of it now! Thanks!

    ISNA is a great function! Is there something similar to use so the if the result is #VALUE! you could leave a blank?

  12. #12
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Yes

    Iserror captures all errors

    http://www.bettersolutions.com/excel...R711922323.htm

    VBA Noob

  13. #13
    Registered User
    Join Date
    07-06-2007
    Posts
    70
    SPOT ON AS USUAL!!!

    worked great! Thanks!!

  14. #14
    Registered User
    Join Date
    07-06-2007
    Posts
    70
    Just one last thing - i've manage to create my sheets - is there anyway to to lock down the doc and only let certain parts to be edited. Similar to protecting a word doc for form filling. (if that made any sense)

  15. #15
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1