Auto Populate Adjacent Cell

MrDB4Excel

Active Member
Joined
Jan 29, 2004
Messages
348
Office Version
  1. 2013
Platform
  1. Windows
As you can see by the examples shown herein they are bogus to some extent and the amounts are all made up only to give results for the inherent formulas.
What I would like to do is when a dollar amount is entered in column “D” that the relevant formula looks to the Recurring Exclusion Type list in column “J” and then matches to the cell content in column “C” and ultimately returns an “R” or “NR”.
Obviously, any cell content in column “C” that does not exist within the “Recurring Exclusion Type” range and then the result to return in the “Label” column “E” would have to be “NR” as there is not a match.
You will also notice that the text in column “C” is sometimes based upon an equals formula, e.g. =TEXT(B5,”MMMM”)&” 2021”&” Health Insurance” thus this may be an issue but I am hoping not.
I have scoured the web for answers with these relevant queries: if a specific text is in a cell then fill in the adjacent cell with specific text; how to xlookup values based on adjacent cell value; and how to filter non-specific cells in excel. Everything I looked at did not seem to answer.
Any help will be much appreciated.

AutoPopulateAdjacentCells.xlsx
ABCDEFGHIJKLM
1NUMBER OR CODEDate dd/mm/yyyyyTRANSACTION DESCRIPTIONPAYMENT AMOUNTLabelüüDEPOSIT AMOUNT or returnsBALANCERecurring Exclusion TypeRecurring Exclusion ValuesLEGENDLEGEND EXPLANATION
2DebitCreditrdregular deposit
3Beginning Balance from end of 2020>>$5,000.00Health Insurance$100olp-dctonline purchase-debit card transaction
4rdJan/06/2021Cash deposit$1,000.00$6,000.00Storage Rental$100ebpelectronic bill pay
5ebpJan/08/2021January 2021 Health Insurance$100.00R$5,900.00Electricity$100RRegular Monthly or Annual Expense
6ebpJan/12/202112-Mobile-Dec.pdf$100.00R$5,800.00Building Association Fee$100NRNon-Regular Expense
7ebpJan/14/2021Storage Rental for January 2021$100.00R$5,700.00Internet Annual Billing$100
8ebpJan/14/2021Electricity for January 2021$100.00R$5,600.00Annual Property Tax$100
9ebpJan/14/2021Building Association Fee for January 2021$100.00R$5,500.00Mobile Phone$100
10ebpJan/14/20212021 Internet-Billing.pdf$100.00R$5,400.00
11olp-dctFeb/01/2021Amazon.com - Daliya Bebistep 4-in-1 Baby Walker$100.00NR$5,300.00
12rdFeb/07/2021Cash deposit$1,000.00$6,300.00
13ebpFeb/08/2021February 2021 Health Insurance$100.00R$6,200.00
14ebpFeb/12/202101-Mobile-Jan.pdf$100.00R$6,100.00
15ebpFeb/14/2021Storage Rental for February 2021$100.00R$6,000.00
16ebpFeb/14/2021Electricity for February 2021$100.00R$5,900.00
17ebpFeb/14/2021Building Association Fee for February 2021$100.00R$5,800.00
18olp-dctFeb/24/2021Amazon.com Johgee Laundry Drying Rack$100.00NR$5,700.00
19olp-dctFeb/25/2021Amtrak Tickets$100.00NR$5,600.00
20olp-dctFeb/25/2021Amtrak Tickets$100.00NR$5,500.00
Sheet1
Cell Formulas
RangeFormula
C5,C13C5=TEXT(B5,"MMMM")&" 2021"&" Health Insurance"
C7,C15C7="Storage Rental for "&TEXT(B7,"MMMM")&" 2021"
C8,C16C8="Electricity for "&TEXT(B8,"MMMM")&" 2021"
C9,C17C9="Building Association Fee for "&TEXT(B9,"MMMM")&" 2021"
I4,I12I4=SUM(I3+H4)
I13:I20,I5:I11I5=SUM(I4-D5)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I found the answer as follows:
=IF(ISNUMBER(MATCH(D6,$K$3:$K$9,0)),"R","NR")
 
Upvote 0
Solution
Glad you got it figured out!

Note, that in these formulas:
=SUM(I3+I4)
=SUM(I4-I5)

the SUM serves no purpose and is unnecessary. SUM does addition (+), so there is no reason to use both.

Your first formula should just be:
=SUM(I3:I4)
or
=I3+I4

And your second formula isn't summing/adding anything, so it should just be:
=I4-I5

Note that if you do use SUM (like you did), you will still get the correct answers, but it is completely unnecessary to do so. It adds nothing of value to the equation.

 
Upvote 0
Thanks Joe4, appreciate the input. My use of sum is just a bad habit I suppose. Some old dogs never learn.
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,713
Members
452,667
Latest member
vanessavalentino83

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