+ Reply to Thread
Results 1 to 10 of 10

Edit cell in ARRAYFORMULA

  1. #1
    Registered User
    Join Date
    03-02-2015
    Location
    atlanta, ga
    MS-Off Ver
    2013
    Posts
    7

    Edit cell in ARRAYFORMULA

    In column A I have this formula:

    = ARRAYFORMULA (IF(B1:B="Custom Rate","*enter rate", ARRAYFORMULA (IF(B1:B="High Rate",100,ARRAYFORMULA (IF(B1:B="Medium Rate",50,ARRAYFORMULA (IF(B1:B="Low Rate",20,""))))))))

    And in column B I have a drop-down menu with the choices "Custom Rate, High Rate, Medium Rate, Low Rate". When a rate is chosen the corresponding value in the ARRAYFORMULA populates the cell in column A. I would like the value for "Custom Rate" to be editable.

    Is there a way to have the value be equal to a wildcard character? Or is there any other way to allow me to edit the value?

    Also, the "Custom Rate" value will always be a number between 1-100, if that helps.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Edit cell in ARRAYFORMULA

    if I understand the question well

    a2 =VLOOKUP(B2,$F$2:$G$5,2,0) and drag down

    see the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Edit cell in ARRAYFORMULA

    The formula you're using doesn't need to be an array, a regular formula with relative references filled down will work just as well.

    =IF(B2="Custom Rate","*enter rate", IF(B2="High Rate",100,IF(B2="Medium Rate",50,IF(B2="Low Rate",20,""))))

    Or using oeldere's lookup method without the extra table.

    =IF(B2="","",LOOKUP(B2,{"c","h","l","m"},{"*enter rate",100,20,50}))
    Last edited by jason.b75; 08-29-2016 at 01:31 PM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Edit cell in ARRAYFORMULA

    Hi and welcome to the forum.

    It's not clear to me why you need an array formula. A standard

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

    You will need a Sheet Change macro to enable you to enter a value between 1 & 100 in column A though. i.e.

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Edit cell in ARRAYFORMULA

    @jason.b75
    The last formula doesn't return correct values
    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Edit cell in ARRAYFORMULA

    Quote Originally Posted by Richard Buttrey View Post
    You will need a Sheet Change macro to enable you to enter a value between 1 & 100 in column A though.
    Any reason why, Richard? There is no validation on column A, so once the array is removed, editing should be possible.

    Quote Originally Posted by AlKey View Post
    @jason.b75
    That's because I had a bit of a Doh! moment and ordered the wrong array constant. I've fixed it now.

  7. #7
    Registered User
    Join Date
    03-02-2015
    Location
    atlanta, ga
    MS-Off Ver
    2013
    Posts
    7

    Re: Edit cell in ARRAYFORMULA

    Thanks everyone! I didn't realize there were so many ways to solve my issue

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Edit cell in ARRAYFORMULA

    You're welcome. We appreciate the feedback!

    Thanks for marking the question solved.

    It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Edit cell in ARRAYFORMULA

    Quote Originally Posted by jason.b75 View Post
    Any reason why, Richard? There is no validation on column A, so once the array is removed, editing should be possible.
    Yes, because if a manual entry is made in column A then the formula is over-ridden. If subsequently the user chooses something other than the Custom Rate in column B then the adjacent cell in column A won't change.

    It just seemed tidier to me to make sure that either a validation is set or a formula entered in column A whenever column B is changed. Hence a sheet change macro.

  10. #10
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Edit cell in ARRAYFORMULA

    Good point, Richard.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How can i add an arrayformula in VBA when formula exceeds 143 characters
    By EdH in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2016, 11:34 PM
  2. delete blank space in ArrayFormula
    By Ditch1983 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 03-29-2015, 01:52 PM
  3. Arrayformula in vba error
    By kbaruin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-04-2013, 06:22 AM
  4. arrayformula from google doc to excel
    By shinkirou in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2013, 11:51 AM
  5. [SOLVED] ArrayFormula / Autofill issue
    By bd528 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2012, 05:21 AM
  6. Help in VBA Arrayformula Errors
    By moh87 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-07-2011, 04:06 AM
  7. [SOLVED] Size of arrayformula with VBA
    By Sune Fibaek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-21-2005, 05:05 AM

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