+ Reply to Thread
Results 1 to 3 of 3

Saving Array formula result in a Varible

  1. #1
    Registered User
    Join Date
    07-22-2008
    Location
    DELHI
    Posts
    11

    Post Saving Array formula result in a Varible

    Dear Scholars,

    I want to write a function with range as a parameter.

    There are multiple values written from Jan to Dec in each column ,i want to find whether there is any gap(blank) cell exist between values.

    The formula will take column d4 to v4 as parameter and will return "Yes/No if there is any GAP exist"

    for example GAP(D4:V4) Result should be "Yes/No"

    i have a formula to find out non blank cells for this , this is an array formulls =MIN(IF(D4:V4<>"",COLUMN(D4:V4))), this is an array formulla , i want to put the same in VBA Code.

    pls help

    warm regards
    Pankaj
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Saving Array formula result in a Varible

    Is this what you want????


    =IF(COUNTIF(B2:T2,"")>0,"Yes","No")

    copied down.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    07-22-2008
    Location
    DELHI
    Posts
    11

    Re: Saving Array formula result in a Varible

    No Glen , my concern is to find out whether any value is missing between two months or not...

    for example if in march month value is not present and it exist in month before and after that then i will consider this as Gap, refer my
    attached file for more clarity.

    thanks for your help in advance!

+ 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] same result without array formula?
    By Kanuck in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-05-2017, 10:41 PM
  2. [SOLVED] weekday() result used in an array formula doesn't work. Formula works if i type in date
    By aarco50 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-25-2014, 03:25 PM
  3. Saving result from a formula as static value in another cell
    By geselaw in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-28-2012, 10:15 PM
  4. saving result from a formula as static in another cell
    By geselaw in forum Excel General
    Replies: 2
    Last Post: 08-25-2012, 07:46 AM
  5. How to find out result by array formula
    By alee001 in forum Excel General
    Replies: 8
    Last Post: 04-28-2012, 12:34 AM
  6. Code to use a varible integer inside a formula in VBA
    By westonkw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2008, 04:19 PM
  7. Saving space in Array formula Sum(If(())...
    By Caro-Kann Defence in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2005, 04:06 PM

Tags for this Thread

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