• 540K Members
• 3,229 Online
• 644K Conversations
SOLVED

## IF Function

Highlighted
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
Highlighted

# 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

Highlighted
Solution

Like this?

Highlighted

# 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

Highlighted

# 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.

Highlighted

# Re: IF Function

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

Related Conversations
Make Share function in Edge more useful
HotCakeX in Discussions on
2 Replies
function talking to table storage
donquijote in Compute on
0 Replies
Calculated column help
gopalaraoa in SharePoint on
1 Replies
Excel If Functions