capture value of cell based on value in 2 cells to the left

LarBar

New Member
Joined
May 18, 2020
Messages
5
Office Version
  1. 2019
Platform
  1. Windows
row #BCDEF
DateAmountCategory
104/01/20104.65Insurance:Dental
204/01/2013.91Dining Out
304/03/3044.71Dining Out
404/03/3050.16Groceries - Household Items
504/03/20511.90[2016 Honda CRV - Loan]
604/06/202.10Misc.
704/08/2016.22Dining Out


In the data above I want to extract the data in column F based on if the values in columns B & C match my find. If the values in both columns B & C match my input I want the value in Column F, same row to be entered in column D below. See the example below.
If I'm search for the Date of "04/03/30" that has a value of "50.16" then I want the value in column F to be entered. I have approx. 500 rows of data so manually doing a find> copy > paste will be too time consuming. Vlookup will not work because I need to check for 2 matches in columns B & C. I've tried working with match but it's not working.
So I match the values in columns B&C above and it enters the value in column F above into column D below

row #BCD
FindFindReturn value formula
104/03/3050.16Groceries - Household Items
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Book1
BCDEFG
11DateAmountCategory
12104/01/2020104.65Insurance:Dental
13204/01/202013.91Dining Out
14304/03/193044.71Dining Out
15404/03/193050.16Groceries - Household Items
16504/03/2020511.9[2016 Honda CRV - Loan]
17604/06/20202.1Misc.
18704/08/202016.22Dining Out
19
20
21FindFindReturn value formula
22104/03/193050.16Groceries - Household Items
23
Sheet2
Cell Formulas
RangeFormula
E22E22=INDEX(G12:G18,LARGE((C12:C18=C22)*(D12:D18=D22)*ROW($C$12:$C$18)-ROW($C$12)+1,1))
 
Upvote 0
This did not work? I get $value!

I'm also using column names because most of the data lives on seperate worksheets within the same workbook.
So, the dates in column B match to values in "NCU_dates", values in column C "Amount" are matched with values in "NCU_amounts" the category to be returned in the equations is found in "NCU_categories"

Hope I'm not confusing the issue?

Thanks for your reply,

LarBar
 
Upvote 0
=INDEX(G12:G18,LARGE((NCU_dates=C22)*(Amount=D22)*ROW($C$12:$C$18)-ROW($C$12)+1,1))

I hope it solves your probelm..
Please paste the above data in cell B11.
 
Upvote 0
I think my previous help questions where confusing so here's an update
The numbers (1-5) are questions or steps on what I need to accomplish.
The attached image is a better view than the pasted in data above
excel help.jpg
excel help.jpg

1. Worksheet-1 data comes from one source, Worksheet-2 from a different source
2. Both of the worksheets are in the same workbook
3. In worksheet 2 there are 3 columns with names:
column A: ncu_dates
column B: ncu_amoounts
column F: ncu_categories

4. I need to match up the date and amounts between the
two worksheets and enter the ncu_category from worksheet2
and put it in column D in worksheet1

5. The formula would actually go in column D of worksheet-1
 
Upvote 0
Book1
BCDEFGHIJK
1Worksheet 1Worksheet 2
2DateAmountCategory04/01/202013.91Insurance
304/01/2020104.65Dinning04/01/2020104.65Dinning
404/01/202013.91Insurance04/03/202050.16Dinning
504/03/202044.71Groceries04/03/202044.71Groceries
6
7
8
9
10
11
Sheet1
Cell Formulas
RangeFormula
D3:D5D3=INDEX($K$2:$K$5,MATCH(B3&C3,$H$2:$H$5&$I$2:$I$5,0))
 
Upvote 0
From the image below you can see I've made my worksheet appear like your example; I copied your formula into Cells: D3-D5 and I get #N/A ?
I've used the match function before but not with the "&" sign. Is there some "add-in" I need to install for this formula to work? I using Excel 2019-32 bit.

excel help 2.jpg
 
Upvote 0
That was to simple! The formula works well.

Thanks for your time & the lesson.

LarBar
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

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