Need help with IF statement formula and pulling data

dmxcasper2

Board Regular
Joined
Mar 21, 2012
Messages
65
Capture.JPG


I am trying to pull data from column I and J into column D. However I need the pulled data to me correctly inputted into Column D by "Book" and "Available" values.

The logic statement:
IF column A and B match exactly column G and H, then pull data of Column I and J into Column D.

Example:
If A3 and B3 match G2 and H2, then paste contents of I2 into D3 and J2 into D4.

Any help with this is greatly appreciated.
 

Attachments

  • Capture.JPG
    Capture.JPG
    45.1 KB · Views: 1

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
NameActB/AAMOUNTSACCT NAMEACCT # BOOK AVAILABLE
TD
934567298​
$ 67,450.00 $ 987.00
TD
934567298​
BOOKMIDLAND
548873422​
$ 8,964.00 $ 7,776.00
AVAILABLEMIDLAND
894112890​
$ 76,300.00 $ 34,099.00
MIDLAND
548873422​
BOOK
AVAILABLE
CAPONE
894112890​
BOOK
AVAILABLE

Let me know if this works.
 
Upvote 0
Thanks. Try this, copied down.

Book1
ABCDEFGHIJ
1NameActB/AAMOUNTSACCT NAMEACCT #BOOKAVAILABLE
2TD934567298$67,450.00 $987.00
3TD934567298BOOK67450MIDLAND548873422$8,964.00 $7,776.00
4AVAILABLE987MIDLAND894112890$76,300.00 $34,099.00
5 
6MIDLAND548873422BOOK8964
7AVAILABLE7776
8 
9CAPONE894112890BOOK#N/A
10AVAILABLE#N/A
Sheet3
Cell Formulas
RangeFormula
D3:D10D3=IF(C3="","",INDEX(I$2:J$4,MATCH(A2&A3&"|"&B2&B3,INDEX(G$2:G$4&"|"&H$2:H$4,0),0),MATCH(C3,I$1:J$1,0)))
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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