+ Reply to Thread
Results 1 to 4 of 4

IF, AND formula needed - Urgent

  1. #1
    Registered User
    Join Date
    12-20-2012
    Location
    Apia, Samoa
    MS-Off Ver
    Excel 2003
    Posts
    2

    IF, AND formula needed - Urgent

    IDA Pata - Leroy.xlsxHi, im a semi-novice and only know basic formula and brute force coding, been tasked with the following to help out Cyclone relief efforts for NZUND so they can better use the information, and in typical fashion, been given a couple hours to come up with a solution

    have column for house level damage (M) and if a 1 is entered in that cell, we have to count the number of people in the household affected which is in column D. and have a looping formula to have a accumulated total for people affected



    i can do this (below) but have many sheets with different lengths of info, is there a way to streamline this formula?
    =IF(M4=1,D4,0)+IF(M5=1,D5,0)+IF(M6=1,D6,0) etc etc for a couple hundred rows.

    I hope im making sense and hopefully someone can help out

    Cheers,
    Ken

    Disaster Managment Samoa

    EDIT: have attached 1 village excel sheet, havent yet compiled all lists.
    Last edited by kiwiram; 12-20-2012 at 06:03 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: IF, AND formula needed - Urgent

    Use Sumif

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Ensure that both the range should have unique row reference


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: IF, AND formula needed - Urgent

    Oops.. your file got messed up with the text

    Try this...
    =SUMIF(M4:M44,1,D4:D44)

  4. #4
    Registered User
    Join Date
    12-20-2012
    Location
    Apia, Samoa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: IF, AND formula needed - Urgent

    SOLVED

    Thanks man, appreciate the help and the quick response. saved us a whole bunch of time. Cheers

+ 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