Formula For Populating Cell With Contents of Another Cell But Based on Result of Different Cell

Sudima425

New Member
Joined
Oct 20, 2017
Messages
1
Hello All:

Hoping you can help me with this problem:

Date Vendor Purpose Amount Auto Books Dues Entertainment Ground Transportation Office

I need to populate the fields after Amount with the contents of the Amount cell based on the Purpose field, for example

10/20 XYZ Books 50.00 50.00(result would be in the Books Column

Right now I'm entering formulas manually line by line and its tedious and time consuming. Please let me know if you need more information. Thank you!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the Board!

Let's say that you have columns A-J, and that your purpose field is column C, Amount field is column D, Books field is column E, etc.
And that you first row of data is in row 2.
Then enter this formula in cell E2 and copy all the way to column J for all your rows:
Code:
=IF($C2=E$1,$D2,0)

By using the Absolute Range References ($) is the correct places, we are able to lock certain row/column references down, while allowing others to move as we copy down and across. See this for more details: http://www.excel-easy.com/functions/cell-references.html
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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