Simplify procedure

Lux Aeterna

Board Regular
Joined
Aug 27, 2015
Messages
191
Office Version
  1. 2019
Platform
  1. Windows
This is Sheet A
View attachment 71249

And this is Sheet B
1660110929424.png


When I type the ID number in Sheet B, cell U2, I draw the referenced data from Sheet A to Sheet B, cell C5 (and C6, C7 etc), using a function like that

Excel Formula:
=IF('Sheet B'!$U$2=Sheet A!$A5;Sheet A!C5;W6)

What I practically say in this function is that if the ID number in Sheet B matches the ID number in sheet A, draw data from that line (that's 5 in this formula). If not, draw data from the row below. On the cell below, I've got a function to draw data from row 6...

Excel Formula:
=IF('Test Pap'!$U$2=Ραντεβού!$A6;Ραντεβού!C6;W7)

and so on...

To meet our needs, I have put this formula in 10.000 rows (that's how many IDs we use at the moment) in six columns.

I'm sure that there's a simpler way to do this!

Thank you in advance!
 

Attachments

  • 1660110857245.png
    1660110857245.png
    18.3 KB · Views: 3

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Update

Sheet A image was not attached

1660113873437.png


What I practically need is a formula that draws data from the line in Sheet A that matches the ID in Sheet B cell U5.
 
Upvote 0
Closed

Found the solution myself :)

In case someone has the same question, it's the lookup function
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,034
Members
449,061
Latest member
TheRealJoaquin

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