match if functions

jbrown021286

Board Regular
Joined
Mar 13, 2023
Messages
61
Office Version
  1. 365
Platform
  1. Windows
i have 2 worksheets 1 named data and 1 named report. if a cell in column C of data matches a cell in column A in report i need columns B,C,D,E,F,G, and h of reports to populate the corresponding rows in columns G,H,I,J,K,L, and M in data. what is the best way to achieve this
 

Attachments

  • Screenshot 2023-12-11 093500.png
    Screenshot 2023-12-11 093500.png
    80.1 KB · Views: 10
  • Screenshot 2023-12-11 093525.png
    Screenshot 2023-12-11 093525.png
    85.4 KB · Views: 10

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
How about
Excel Formula:
=XLOOKUP(C6,Report!$A$2:$A$100,Report!$B$2:$H$100,"no match")
 
Upvote 0
try this
Excel Formula:
=FILTER(report!$B$1:$H$30,report!$A$1:$A$30=C6,"no match")
 
Upvote 0
How about
Excel Formula:
=XLOOKUP(C6,Report!$A$2:$A$100,Report!$B$2:$H$100,"no match")
is there also a way to make this work with the "get data from table/range function. right now it works till i create a table then it does this
 

Attachments

  • Screenshot 2023-12-12 070134.png
    Screenshot 2023-12-12 070134.png
    78.5 KB · Views: 8
Upvote 0
You cannot use spill ranges in a table. The best thing is to convert the table to a normal range, it's far more efficient than using multiple formulae, when one will do.
 
Upvote 0
If you are pulling the data into Power Query, you would normally do the lookup in Power Query using a Join in PQ called a Merge.
As Fluff alluded to you can do it in the table by doing a column by column lookup instead of relying on the formula spilling.

ie put this in column G and copy it across to H-M
Excel Formula:
=XLOOKUP($C6,Report!$A$2:$A$100,Report!B$2:B$100,"no match")
($C6 would normally be replaced with the table structured reference for Column C and the current row (@)
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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