• 408K Members
• 8,422 Online
• 464K Conversations
SOLVED

## IF Function

Occasional Contributor

# IF Function

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

# Re: IF Function

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.

# Re: IF Function

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.

John

Solution

Like this?

# Re: IF Function

Spoiler

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

# Re: IF Function

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.

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

# Re: IF Function

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

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
217 Replies