+ Reply to Thread
Results 1 to 2 of 2

Excel Function Returning No Value

  1. #1
    Registered User
    Join Date
    06-04-2020
    Location
    Tampa, FL
    MS-Off Ver
    2013
    Posts
    1

    Excel Function Returning No Value

    Hello! Terribly sorry to bother with such a simple question, but my VBA skills are a tad rusty. I am trying to make a function that is passed a letter, for example P, and then returns either a 1 or 0 depending on the letter passed. For some reason, when I run my function I am left with a blank cell. Any help would be greatly appreciated!

    Please Login or Register  to view this content.

  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,695

    Re: Excel Function Returning No Value

    You need to put quotes around the P and T to make them text values. As you have it, they are undeclared variable names.

    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)

Similar Threads

  1. [SOLVED] Excel Function for checking values in 3 columns and returning a value
    By kian82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-28-2017, 07:57 AM
  2. Excel VBA function returning #VALUE! unexpectedly (and only occasionally)
    By novaraz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-07-2016, 02:46 PM
  3. [SOLVED] VBA function returning #value in excel
    By mat888 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2015, 12:25 PM
  4. [SOLVED] Excel function is returning undesired answer for blank cells
    By dcwandj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-28-2012, 12:14 PM
  5. Excel 2007 : Excel Function returning 0
    By easdenp in forum Excel General
    Replies: 1
    Last Post: 07-22-2011, 07:52 AM
  6. Excel 2007 If function using 2 worksheets returning formulas
    By kiepre in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-01-2009, 08:48 AM
  7. Excel Function returning negative 0
    By ibertram in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2005, 10:40 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