If function help needed

Berandon

New Member
Joined
Sep 8, 2014
Messages
29
Is it Possible to have an If function run the whole column of "D" that If there is a "1" in the box, it adds a different column but the same row to a box. eg ... If D9-D2000 equals "1" then add M(same Row) to M4 and O(same row) to O4 and P(same Row) to O5.

I guess i could do a different If function for each cell, but I was hoping to consolidate it into 1 cell.
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Comfy

Well-known Member
Joined
Dec 21, 2009
Messages
3,377
There is a function called SUMIF.

So M4 would be:

=SUMIF(D9:D2000,1,M9:M2000)
 

Watch MrExcel Video

Forum statistics

Threads
1,109,379
Messages
5,528,349
Members
409,817
Latest member
JiNXX9500

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top