+ Reply to Thread
Results 1 to 11 of 11

Error when applying formula to other cells

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Question Error when applying formula to other cells

    Hi All

    Thank you for looking at my post and assisting me.

    Within the spreadsheet attached I require the following

    When selecting B27 a dropdown list containing "procedure codes appear" when you select one, for example 72001 a price in the amount column appears
    Example 72001 - RHP Infra-red, Radiant heat Amount 38.00

    When you select cell B28 and you select for example code 0006 50% of the initial amount next to the procedure is added on
    Initial amount is 38.00 when you select 0006 (38*50% = 19.00) the 19.00 is added to the 38.00 = 57.00

    What I wanted to know is it possible to apply the rules set for B28 to also apply to C28,D28,E28,F28,G28

    I tried to figure it out myself, by taking the formula used for B28 and I copied that formula and added it on to H27 but changed the cell in the formula to C28, this worked but when I tried to do this for the other cells (D27,E27 etc.) it gave me the following error: The value you entered is not valid, a user has restricted values that can be entered into this cell.

    1) Is it possible to apply the rules to all the cells (B28(done),C28(done),D28,E28,F28,G28(errors)
    2) Is it possible to allow the selection of a blank field, in case you do not want a procedure or code to display (see cell B29) I can select a procedure but I can also select a blank field to show nothing, this must be also possible when selecting the codes.

    Thanks for the assistance, it is much appreciated .
    Attached Files Attached Files
    Last edited by Excelnoob1234; 09-10-2012 at 04:07 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Error when applying formula to other cells

    See attached file. I've set up two new named ranges and used VLOOKUP rather than INDEX/MATCH.

    Hope this helps.

    Pete
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-17-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Error when applying formula to other cells

    Thank you so much , Pete, I cant tell you how much this helped.

  4. #4
    Registered User
    Join Date
    08-17-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Question Need Help Applying different formula to function

    Hi there

    I was wondering if you can assist me with the following

    If you open the attached excel document you will notice that on sheet 2 under modifier(E1) there is a list of codes

    0006
    0008(A)
    0008(B)
    0009(A)
    0009(B)
    0010(A)
    0010(B)
    0011
    0021

    The cell next to each code has values in it. When a value other than 0 is entered into the cell next to the corresponding modifier code the value inserted multiplies as a percentage of the original price.

    example
    in sheet 1 if you select cell 27(B-G) and select any code an amount displays next to it
    below the cell you can select the modifiers listed above. Upon selecting a modifier ie 0006 the original amount is multiplied as a percentage (when selecting 0006 the initial price is increased by 50%). I need the following to happen, instead of the modifier acting as a percentage for the following codes 0008(B),0009(B),0010(B)when applied, i need those 3 codes to add 26 to the price.

    So instead of having the initial price increase by 26% when selecting either 0008(B),0009(B),0010(B) the price increases by 26. The
    rest of the codes must remain with their current functionality.

    If you can assist me in this matter I would greatly appreciate it. I would also really like to know how you applied the vlookup formulas, or if there is a way I can learn to apply such codes for future use.

    Once Again thank you.
    Attached Files Attached Files
    Last edited by Excelnoob1234; 09-10-2012 at 06:32 AM. Reason: Changes Needed

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Need Help Applying different formula to function

    I've made the necessary changes to the formula in cell H27, and then copied this down to the other blue cells in that column.

    Hope this helps.

    Pete
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-17-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Thumbs up Re: Error when applying formula to other cells

    Thank You So Much Pete, really appreciate the fact that their are people with experience offering their help to assist noobs like me

    If I ever come over to the UK I will buy you a case of beer!

  7. #7
    Registered User
    Join Date
    08-17-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Question Functionality for following required

    Hi there Pete

    Thank you for the help with modifying the rules applicable to the modifiers in the excel workbook, really appreciated it.

    I have another issue which cropped up , wanted your advice and assistance if it is possible to do the following:

    If you open the attached excel workbook and go to sheet 2 you will see in

    cell J1 title named -> Dispensaries
    cell K1 titles named -> Price

    If you look at the attached image, I illustrated what functionality is required.

    Your help has really been great, and I am sure you are a busy person to, therefore I would appreciate it if you can maybe direct me in the right direction as to how I can go about educating myself in understanding how you applied the formulas in the workbook so far, so that I can help myself and others like you have kindly done.

    Thank you once again, have a great day.
    Attached Files Attached Files

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Functionality for following required

    Quote Originally Posted by Excelnoob1234 View Post
    I would appreciate it if you can maybe direct me in the right direction as to how I can go about educating myself in understanding how you applied the formulas in the workbook so far, ...
    That's a bit like asking how I learnt to speak English - I can't remember all the sources I've used in the past to learn about Excel. This forum (and others) is a great source of advice if you take the trouble to examine solutions that are given and to work out and fully understand how they work.

    I've replied to your PM - I'll try to take a look at this later on.

    Pete

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Functionality for following required

    I've set up a drop-down in B47 from which you can choose from the Dispensary list on Sheet2. To achieve this, I first set up a named range called Disp to cover J3:J75 on Sheet2 (I also set up another named range called D_Price to cover cells K3:K75 on Sheet2, which I will need later). Then in cell B47/C47 on Sheet1 (it's not generally a good idea to merge cells), I clicked on Data | Data Validation | Data Validation and in the Allow box I selected List and in the Source box I typed:

    =Disp

    This tells Excel to only allow values from that named range. I copied cell B47/C47 down to B51/C51, so each of those cells now has the data validation set up in them.

    I put this formula in E47/F47:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    which checks to see if either B47 or D47 are blank (and returns a blank if so), and if not it then returns the price from the row on which the dispensary occurs and multiplies the unit price by the number in column D. This is very similar to the VLOOKUP formulae I gave you last time, but uses INDEX/MATCH instead (just because I had defined named ranges as lists rather than tables). This formula is copied down to E51/F51.

    The formula in the blue cell (H51) is simply a sum of those cells:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note that you should use the left-most cell when dealing with merged cells. You can then copy this block of cells down to your other pages (Do you really need so many? It slows the workbook down considerably).

    Anyway, I hope this helps - good luck with your project.

    Pete
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-17-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Error when applying formula to other cells

    Hey Pete

    Thank you so much for the detailed explanation and showing me how you went about implementing the formulas and their application. I carefully analyzed what you wrote down and I think I have fairly good understanding of the concept. You must have great holiday and I respect you for taking the your time in helping me.

    Kind Regards

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Error when applying formula to other cells

    Okay, well if you want to get into it further, here's a link to an excellent site run by Debra Dalgleish:

    http://www.contextures.com/tiptech.html

    The link is to the contents page, so from there you can look for Data Validation, INDEX, MATCH, VLOOKUP etc., and there are lots of videos on other topics. Add it to your Favourites.

    Another favourite of mine is Chip Pearson's site, here:

    http://www.cpearson.com/excel/topic.aspx

    Both are excellent sources of information, in addition to the forums that I mentioned earlier.

    Hope this helps.

    Pete

+ 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