+ Reply to Thread
Results 1 to 2 of 2

How can i shorten my formula

  1. #1
    Registered User
    Join Date
    11-12-2008
    Location
    NY
    Posts
    1

    How can i shorten my formula

    Hi,

    I am summing using "isnumber" and "vlookup" but the formula is too long; can some teach me how to shorten this formula?

    Thanks in advance for your help.

    =IF(ISNUMBER(VLOOKUP(E34,'429'!E:K,7,FALSE)),(VLOOKUP(E34,'429'!E:K,7,FALSE)),0)+IF(ISNUMBER(VLOOKUP(E34,'570'!E:K,7,FALSE)),(VLOOKUP(E34,'570'!E:K,7,FALSE)),0)+IF(ISNUMBER(VLOOKUP(E34,'574'!E:K,7,FALSE)),(VLOOKUP(E34,'574'!E:K,7,FALSE)),0)+IF(ISNUMBER(VLOOKUP(E34,'575'!E:K,7,FALSE)),(VLOOKUP(E34,'575'!E:K,7,FALSE)),0)+IF(ISNUMBER(VLOOKUP(E34,'576'!E:K,7,FALSE)),(VLOOKUP(E34,'576'!E:K,7,FALSE)),0)+IF(ISNUMBER(VLOOKUP(E34,'577'!E:K,7,FALSE)),(VLOOKUP(E34,'577'!E:K,7,FALSE)),0)+IF(ISNUMBER(VLOOKUP(E34,'578'!E:K,7,FALSE)),(VLOOKUP(E34,'578'!E:K,7,FALSE)),0)+IF(ISNUMBER(VLOOKUP(E34,'579'!E:K,7,FALSE)),(VLOOKUP(E34,'579'!E:K,7,FALSE)),0)+IF(ISNUMBER(VLOOKUP(E34,M2MKT2!E:K,7,FALSE)),(VLOOKUP(E34,M2MKT2!E:K,7,FALSE)),0)+IF(ISNUMBER(VLOOKUP(E34,'580'!E:K,7,FALSE)),(VLOOKUP(E34,'580'!E:K,7,FALSE)),0)


    Thanks,
    Naiomi

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    First, enter your sheet names in a range of cells, for example A2:A10. Then try...

    =SUMPRODUCT(SUMIF(INDIRECT("'"&$A$2:$A$10&"'!E:E"),E34,INDIRECT("'"&$A$2:$A$10&"'!K:K")))

    Hope this helps!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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