SOLVED

IF Function

Copper Contributor

Hi,

 

Can I please have help with this one..

 

I am looking to do the following:

- Column M on Tab 1 has dates relating to a figure Column G, which has a project name in Column B.

- I want Tab 2 to have January to December along the top row

- Tab 2 to have Project Names from Tab 1 Column B down column A

- Figures from Tab 1, Column G relating to the dates in Column M input into the correct month column in Tab 2.

 

Sheet attached.

 

John

 

6 Replies

@johnjamescassidy 

Please give this a try...

On Gateway Sheet,

In B2

=SUMPRODUCT(('Original List '!$B$2:$B$21=$A2)*(TEXT('Original List '!$M$2:$M$21,"mmmm")=B$1)*('Original List '!$G$2:$G$21))

and copy it across and down.

@Subodh_Tiwari_sktneer 

I cannot get this to copy down and across to take into account the additional figures and dates per months.

I would like all the amounts per month, per project to come across to the 2nd tab.

And then totaled per month.

Please see attached.

John

best response confirmed by johnjamescassidy (Copper Contributor)
Solution

Like this?

 

Spoiler
 

@Subodh_Tiwari_sktneer 

Thank you that worked. 

 

I have an additional query for the same sheet, in the same vein.

 

I need Tab 3 to be populated with the Project Names in Column 1 and corresponding Project Start Dtates organised to the correct monthly column using the dates from Tab 1, Column N.


Can you help?

 

John

 

Hi John,

 

The Project Start Date is column M not column N but since you mentioned column N in your requirement I have used column N reference in the formula. If it's not column N but column M, change the column reference in the formula used.

 

On Project Start Dates Sheet,

In B2

=IFERROR(INDEX('Original List '!$N$2:$N$21,MATCH(1,INDEX(('Original List '!$N$2:$N$21<>"")*('Original List '!$B$2:$B$21&TEXT('Original List '!$N$2:$N$21,"mmmm")=$A2&B$1),),0)),"")

and copy it across and down.

 

Please look at the attached and let me know if that's what you were trying to achieve.

 

If that takes care of your question, please mark this post as an Accepted Answer/Response which will mark your question as Solved.

You may also hit the like button under the posts which helped you to resolved your question.

 

 

@johnjamescassidy 

 

I added Power Query solution for exactly the same, only for illustration.

1 best response

Accepted Solutions
best response confirmed by johnjamescassidy (Copper Contributor)
Solution