+ Reply to Thread
Results 1 to 2 of 2

Please help... only have 20 mins

  1. #1
    Registered User
    Join Date
    07-19-2006
    Posts
    3

    Please help... only have 20 mins

    Sorry for my urgence...

    I need to find a way to sum a value if the right 3 digits of a code are equal to another code in other sheet. Example:

    Sheet 1
    A------------------B---------------------C
    Code-------------Field1----------------Value
    0231241---------xxxxxxx---------------10020
    0032241---------yyyyyy---------------750
    0212120---------zzzzzzz---------------1002
    .
    .
    .
    .
    30000 rows
    .
    .
    .


    In sheet 2 I have already some subtotals calculated by other aplication, but I need to verify the values. So I have something like:

    Sheet2
    A------------------B---------------------C
    Code-------------Total 1-----------------My total
    241---------------10770----------------- Here goes my total
    120----------------1002------------------Here goes my total
    .
    .
    .
    .

    This is realy urgent... can you please help me?

    Thanks

    JK

  2. #2
    Registered User
    Join Date
    02-06-2006
    Posts
    42
    Hi,

    Not really got time to check it but won't something along the lines of:

    insert a column next to column A in sheet 1 (you can hide it later). in cell 1 of inserted column write '=right(A1,3)', drag down the rest of the column

    This will retrieve the last three digits of the code in column A.

    Then wherever you want the count write '=countif(B2:B3000,241)'.

    You could probably do it with the countif function from the start but it would be hard.

+ 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