+ Reply to Thread
Results 1 to 4 of 4

Simifs between a range

  1. #1
    Registered User
    Join Date
    08-07-2019
    Location
    Scotland
    MS-Off Ver
    2016
    Posts
    56

    Simifs between a range

    Hey Guys,

    Hoping someone can help been going round in circles trying to figure this out. I have attached a test sheet to help explain

    Looking to have a formula that can do the following

    In Cells in G:G If the Corresponding Cell in F:F = "Yes" then sumif if the Cell in B:B is in the Range E:E it should sum the Values in C:C but only between the starting 0 in column A:A and the ending column where that cell in G:G lies between in A:A.

    For EG: in cell G155 the 1st '0' in column A:A is in A141 and the last is in A177
    so as F155 = "Yes" the formula should sum the values C170:C173 as the value in B155 matches those in E170:E173 it should = 1334.205

    Likewise the Value in G2 should = 20,290.18
    G8 should = 29,793.04

    Any and all help greatly appreciated.

    Many thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Simifs between a range

    I am not sure of the relevance of the between the 0s in the explaination, but does the below work for g2

    =IF(F2="yes",SUMIF(E:E,B2,C:C),"")

  3. #3
    Registered User
    Join Date
    08-07-2019
    Location
    Scotland
    MS-Off Ver
    2016
    Posts
    56

    Re: Simifs between a range

    Hey,

    Thanks for having a look, no I am afraid not it needs to only sum between the 0's in column A:A this is the bit I have been having issues with. Reason is that the main file I have is for my order book an I am working on that has over 45k lines like this with other data. The Assembly cost is not an accurate representation of the cost right now I need it to sum as I described above. Reason I need it like above is that I have a few places where the values further down the list will be the same but for another order so they will give a false value for all of these.

    Hope that makes sense

    thanks

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Simifs between a range

    you need to explain the 0s is it to sum from the line of the yes to the line with the next 0?

    if you are using the range to the 0 in column A below the row in question the below might work
    =IF(F2="yes",SUMIF(OFFSET(E3,0,0,MATCH(0,A3:$A$177,0),1),B2,OFFSET(C3,0,0,MATCH(0,A3:$A$177,0),1)),"")

+ 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. Replies: 8
    Last Post: 03-24-2021, 08:36 AM
  2. [SOLVED] Use range.copy_ destination:= ... instead of range.copy range.paste is not working. Help!
    By Halil93 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2020, 03:32 PM
  3. Copy range A of cells if value is in range B & paste in range B/Multiple Or
    By Jeremycad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2018, 04:28 AM
  4. Replies: 4
    Last Post: 02-24-2017, 02:06 AM
  5. [SOLVED] Help! - Copy Range (Sheet1,A10:F50), Paste Range (Sheet 2,A1:F41), Offset Range & Repeat
    By cjtimmer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-30-2015, 06:27 PM
  6. [SOLVED] Count number of occurances below a range, within a range, and below a range
    By maacmaac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2013, 11:36 PM
  7. send to range, popup box to input what the range should be each time/select range
    By lax2734 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2012, 01:37 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