+ Reply to Thread
Results 1 to 5 of 5

Too Many Variables When Entering Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    Somewhere
    MS-Off Ver
    Microsoft 365
    Posts
    81

    Too Many Variables When Entering Formula

    When I try to enter a formula, I am told that there are too many variables.

    What I currently have is this (give or take a few minor changes)

    =IF(COUNTIF('INFO’!A2:A14,’ABSENCE MEMO’!B7),'INFO'!A42,IF('INFO'!A15=’ABSENCE MEMO’!B7,'INFO'!A48),IF('INFO'!A16=’ABSENCE MEMO’!B7,'INFO'!A45),IF('INFO'!A17=’ABSENCE MEMO’!B7,'INFO'!A51,””))

    What I am needing is if 10 different options show up in 1 cell, to copy information from another cell. There are another 3 options as well, however, if it is any of those additional 3 - a different cell needs to be copied for each one. For example, I have a total of 13 options - but only 4 different things that would need to be copied over.

    I used the same basics for the formula when there was only 2 different things that needed to get copied. I am unsure how to make it work when I have 4 different options now.

    Have I confused you yet? LOL.

    Thanks for your help!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Too Many Variables When Entering Formula

    try constructing your if's like this
    =IF(COUNTIF('INFO'!A2:A14,'ABSENCE MEMO'!B7),'INFO'!A42, first if
    IF('INFO'!A15='ABSENCE MEMO'!B7,'INFO'!A48, second if
    IF('INFO'!A16='ABSENCE MEMO'!B7,'INFO'!A45, third if
    IF('INFO'!A17='ABSENCE MEMO'!B7,'INFO'!A51, fourth if
    "" what to put if none true
    )))) number of closing ) = number of ifs ie 4
    that becomes when all stringed together

    Formula: copy to clipboard
    =IF(COUNTIF('INFO'!A2:A14,'ABSENCE MEMO'!B7),'INFO'!A42,IF('INFO'!A15='ABSENCE MEMO'!B7,'INFO'!A48,IF('INFO'!A16='ABSENCE MEMO'!B7,'INFO'!A45,IF('INFO'!A17='ABSENCE MEMO'!B7,'INFO'!A51,""))))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-31-2013
    Location
    Somewhere
    MS-Off Ver
    Microsoft 365
    Posts
    81

    Re: Too Many Variables When Entering Formula

    error.docx


    Didn't work. I still keep getting this pop up box after

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Too Many Variables When Entering Formula

    here is the formula inserted
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-31-2013
    Location
    Somewhere
    MS-Off Ver
    Microsoft 365
    Posts
    81

    Re: Too Many Variables When Entering Formula

    Awesome.

    Thanks!

+ 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. Mac Excel 2011 - How To Create Shortcuts When Entering Variables
    By davidosus in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 09-09-2013, 03:24 AM
  2. entering formula
    By Guitar Billy in forum Excel General
    Replies: 12
    Last Post: 12-11-2007, 03:26 PM
  3. Need help entering a <= formula
    By me4jem in forum Excel General
    Replies: 2
    Last Post: 08-24-2006, 05:12 PM
  4. Entering formula
    By Flash in forum Excel General
    Replies: 1
    Last Post: 07-22-2006, 09:05 AM
  5. Entering variables on Msgbox prompt
    By renegan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2006, 02:54 PM

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