Populate cells based on certain fields data input

darko1515s

New Member
Joined
Aug 14, 2024
Messages
5
Office Version
  1. 2021
Platform
  1. Windows
Hello community.
I have an excel file with to tabs.
In the first tab it will be a database with information.
In the second tab I will have a report sheet that will need to collect data from the first tab based on the report nr entered.

Example:
In the 2nd screenshot in red ( the report sheet), if I type the report nr 1212, I want yellow fields to be populated with data corresponding to the report nr 1212 from the fist tab(the database) row 5, that corresponds to 1212.

If I type 1276 in the 2nd tab ( the report file) certain fileds to be populated with data corresponding row 6 from tab one - 1276

I have a file that does that, but can not replicate the formula.
 

Attachments

  • 1000046439.jpg
    1000046439.jpg
    138.6 KB · Views: 8
  • 1000046440.jpg
    1000046440.jpg
    72.3 KB · Views: 8

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
For field Data you can use:
Excel Formula:
=XLOOKUP(I8,'Database sheet'!W5:W100,'Database sheet'!X5:X100)
For field Indicativ proba, use:
Excel Formula:
=XLOOKUP(I8,'Database sheet'!W5:W100,'Database sheet'!C5:C100)
For field Data esantionarii, use:
Excel Formula:
=XLOOKUP(I8,'Database sheet'!W5:W100,'Database sheet'!B5:B100)

In each case change 'Database sheet' to the name of the sheet that your database is called, and change 100 to a bottom row appropriate for your data.
 
Upvote 0
For field Data you can use:
Excel Formula:
=XLOOKUP(I8,'Database sheet'!W5:W100,'Database sheet'!X5:X100)
For field Indicativ proba, use:
Excel Formula:
=XLOOKUP(I8,'Database sheet'!W5:W100,'Database sheet'!C5:C100)
For field Data esantionarii, use:
Excel Formula:
=XLOOKUP(I8,'Database sheet'!W5:W100,'Database sheet'!B5:B100)

In each case change 'Database sheet' to the name of the sheet that your database is called, and change 100 to a bottom row appropriate for your data.


It doesn't seem to work. Any ideea?
 

Attachments

  • 1000046453.jpg
    1000046453.jpg
    94.4 KB · Views: 2
  • 1000046452.jpg
    1000046452.jpg
    120.1 KB · Views: 2
Upvote 0
Two things:
  • Click in cell I8 and see what it says in the formula bar
  • In another cell (say T8) enter =ISNUMBER(I8) and see if it returns TRUE or FALSE
 
Upvote 0
Two things:
  • Click in cell I8 and see what it says in the formula bar
  • In another cell (say T8) enter =ISNUMBER(I8) and see if it returns TRUE or FALSE
- By clicking I8 in the formula bar it shows value entered, in my case 1212
- for the 2nd point it returns FALSE
 
Upvote 0
Try changing formulas to:

Excel Formula:
=XLOOKUP(VALUE(I8),'Database sheet'!W5:W100,'Database sheet'!X5:X100)
and others similarly.
 
Upvote 0
Solution
Try changing formulas to:

Excel Formula:
=XLOOKUP(VALUE(I8),'Database sheet'!W5:W100,'Database sheet'!X5:X100)
and others similarly.
For some reason the I8 cell wasn't reporting as number , but after formating the cell the formula works.
Thank for you're help. I am now creating the database and will help me a lot with repetitive tasks.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

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