IF statement help

jeongs1

New Member
Joined
May 23, 2017
Messages
44
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD="align: center"]LOCATION[/TD]
[TD][/TD]
[TD="align: center"]AMOUNT[/TD]
[TD="align: center"]Mr. A[/TD]
[TD="align: center"]Mr. B[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD="align: center"]LAS[/TD]
[TD]Mr. A[/TD]
[TD]$0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD="align: center"]LAS[/TD]
[TD]Mr. B[/TD]
[TD]$10,000[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD="align: center"]LAS[/TD]
[TD]Total[/TD]
[TD]$10,000[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD="align: center"]LAS[/TD]
[TD]TV[/TD]
[TD]$2,000[/TD]
[TD][/TD]
[TD]$2,000 (manual input)[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD="align: center"]LAS[/TD]
[TD]Radio[/TD]
[TD]$8,000[/TD]
[TD][/TD]
[TD]$8,000 (manual input)[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD="align: center"]SFB[/TD]
[TD]Mr. A[/TD]
[TD]$2,500[/TD]
[TD]=C7/C9[/TD]
[TD]=C8/C9[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD="align: center"]SFB[/TD]
[TD]Mr. B[/TD]
[TD]$2,350[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD="align: center"]SFB[/TD]
[TD]Total[/TD]
[TD]$4,850[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD="align: center"]SFB[/TD]
[TD]TV[/TD]
[TD]$0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD="align: center"]SFB[/TD]
[TD]Radio[/TD]
[TD]$4,850[/TD]
[TD]=D7*C11[/TD]
[TD]=E7*C11[/TD]
[/TR]
</tbody>[/TABLE]


So I have the above data. Now, I have been just manually inputting the dollar amount according to either Company or Sponsor.
For example, since all the advertisement for LAS was sponsored by Mr. B, I would put $2,000 in E5 and $8,000 in E6.

For SPB, both the Mr. A and sponsored for the advertisement, I would calculate how much of the total Mr. A contributed and how much Mr. B contributed.
I would do "=C7/C9" in D7 and "=C8/C9" in E7. Then I would use those percentage and multiply by the amount spent from each advertising type (see the table).

Now what I want to do is maybe use "IF" formula to calculate the numbers. So that all I would have to do is input the amount in Column C for each month, and formulas in Column D and E would pick up the values and automatically do it. Now, note that locations vary on the amounts, the person who sponsors, and the media type that was advertised.

Greatly appreciate any help!
 

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.

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top