+ Reply to Thread
Results 1 to 5 of 5

Compair 2 sets of numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    11-22-2008
    Location
    Cleveland OH USA
    Posts
    46

    Compair 2 sets of numbers

    I have a business in which I compare my customer scores monthly
    Attached is a sheet

    Column A is Cust ID and B is Cust score previous moth

    Column D is Cust ID and E is Cust Score current moth

    Column E is the Movement in score If found

    =(E3-(LOOKUP(D3,A:A,(B:B))))


    This formula works but if the current customer is not found in Column A
    It uses the score in column A that is just under it.
    For example say 793 is in the D column current list but not found in column A
    But 795 is in column A it will use 795 Score in the computation which is wrong

    This formula works in finding customers but the computation doesn’t work

    =IF((SUMIF(A:A,D2,B:B))>0,(E2-(SUMIF(A:A,D2,B:B))),0)

    Also not sure what I can do if current customer not found maybe put a NULL for score

    Help would be appreciated
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Compair 2 sets of numbers

    The values in Columns B & E are numbers stored as text - ie they are not numbers per se... the SUMIF will always return 0.

    If need coerce the values in B & E by entering the number 1 into a blank cell, copying it - highlighting the values in B & E and running Paste Special: Multiply.

    You should then find:

    =IF(COUNTIF(A:A,D4),E4-SUMIF(A:A,D4,B:B),0)

  3. #3
    Registered User
    Join Date
    11-22-2008
    Location
    Cleveland OH USA
    Posts
    46

    Re: Compair 2 sets of numbers

    I feel so dumb don't notice not a number

    It worked thanks

    But what can I do if cust id in column d not found in a right now it puts a 0 for movement I want maybe it to say NULL . . . can that be done

    what it means is I have my total customer list from the day I opened but I only consider them active if been in in the last 365 so someone can be current and not in the previous period because the last period they were over a year and now they came back "which is a GOOD thing
    Last edited by Dryclean; 03-02-2010 at 01:28 PM.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Compair 2 sets of numbers

    change the 0 to ""

  5. #5
    Registered User
    Join Date
    11-22-2008
    Location
    Cleveland OH USA
    Posts
    46

    Re: Compair 2 sets of numbers

    Thanks
    I made it 99 then did a counif so now I know how many customers have come back after being inactive

+ 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