+ Reply to Thread
Results 1 to 5 of 5

#VALUE error trying to insert a named range to SUMIF with initials

  1. #1
    Registered User
    Join Date
    12-17-2015
    Location
    Penrith
    MS-Off Ver
    2007
    Posts
    27

    Exclamation #VALUE error trying to insert a named range to SUMIF with initials

    Hi guys,
    I'm trying to create a rota spreadsheet where staff are working in different areas and paid different rates, so I'm trying to use a formula to select all cells with each staff's initials in (e.g. "A.B.") within a named range that covers several separated columns.
    It doesn't matter which formula I try I get an error value. I can use the following array formula for one or two columns but it falls apart when I try to use it over the range : {=SUM((LEN(B4:C66)-LEN(SUBSTITUTE(B4:C66,"K.A.","")))/LEN("K.A."))} works, {=SUM((LEN(HOMESUPPORT)-LEN(SUBSTITUTE(HOMESUPPORT,"K.A.","")))/LEN("K.A."))} doesn't. I have tried basic =SUMIF(HOMESUPPORT,"K.A.") which hasn't worked either and various other ones, I just want it to add up all cells with certain initials in within the named range and I'm really stuck, please help!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: #VALUE error trying to insert a named range to SUMIF with initials

    How is HOMESUPPORT defined?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    12-17-2015
    Location
    Penrith
    MS-Off Ver
    2007
    Posts
    27

    Re: #VALUE error trying to insert a named range to SUMIF with initials

    ='Staff week 1'!$B$4:$C$66,'Staff week 1'!$F$4:$G$66,'Staff week 1'!$K$4:$L$66,'Staff week 1'!$P$4:$Q$66,'Staff week 1'!$T$4:$U$66,'Staff week 1'!$Y$4:$Z$66,'Staff week 1'!$AC$4:$AD$66

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: #VALUE error trying to insert a named range to SUMIF with initials

    The range has to be a contiguous range.

    You would need to use a separate formula for each range.

  5. #5
    Registered User
    Join Date
    12-17-2015
    Location
    Penrith
    MS-Off Ver
    2007
    Posts
    27

    Re: #VALUE error trying to insert a named range to SUMIF with initials

    ah bugger, oh well slow way it is, thanks for your help anyway!

+ 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] Sumif in Named Range
    By cossie2k in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-11-2015, 05:33 AM
  2. [SOLVED] Trying to get SUMIF to only look at a specified named range
    By mo4391 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-21-2015, 03:18 PM
  3. [SOLVED] Sumif Named Range
    By DButtgen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2015, 11:31 AM
  4. [SOLVED] Formula required for initials of names and combining initials with other text
    By iDarkAngel in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-07-2012, 11:22 AM
  5. Insert a row at the top of a named range
    By K Thomas in forum Excel General
    Replies: 0
    Last Post: 05-03-2011, 10:17 PM
  6. named formula VBA insert error
    By Hammer_757 in forum Excel General
    Replies: 14
    Last Post: 10-14-2006, 08:53 AM
  7. [SOLVED] INSERT into named range using ADO
    By Tim Payne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2005, 06:06 AM

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