Results 1 to 7 of 7

Variable Type Mysteries

Threaded View

  1. #1
    Registered User
    Join Date
    12-11-2014
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    94

    Variable Type Mysteries

    Consider the following:
    KYE | KYW | "IF() Formula" | "Test Formula 1" | "Test Formula 2"
    KYE
    KYE
    KYE
    KYW
    KYW
    KYW


    ``BASED ON THIS RETURNING "Yes" from C1:
    =IF(INDIRECT(ADDRESS(ROW(),2))="KYW","Yes","No")


    ``THIS from D1
    =SUMPRODUCT(MAX(($A1:$A7=INDIRECT(ADDRESS(ROW(),2)))*ROW($A1:$A7)))


    ``SHOULD WORK THE SAME AS THIS from E1
    =SUMPRODUCT(MAX(($A1:$A7="KYW")*ROW($A1:$A7)))


    But it doesn't!! The formula in D1 returns #VALUE! and E1 returns the desired response (7). If I take out the INDIRECT() in the first formula, it returns 0. I'm not sure what the right way to do this is, can someone shine some light on the subject? I appreciate any help!


    Copy of Book1.xlsx
    Last edited by npatridge; 01-27-2015 at 07:11 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Input box to needs different type of variable type (RC vs. A1?)
    By Niedermee in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-18-2014, 05:00 PM
  2. Mysteries of cell locking/protection
    By ChrisXcel in forum Excel General
    Replies: 9
    Last Post: 04-07-2014, 11:22 PM
  3. Hear to learn VBA mysteries and solve some problems
    By Denison in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-30-2013, 05:51 AM
  4. Variable type
    By arnab0711 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2010, 03:57 AM
  5. What can cause a Variable Type to disappear
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2009, 05:19 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