how to quickly fill in a table

coscongr

New Member
Joined
Jan 28, 2018
Messages
13
I have an Excel table of that format

number | description | weight 1 | weight 2 | number | description | weight 1 | weight 2





I have to fill in data by finding the number and manually fill in weight1 and weight2

Is there a way I could just make the data entry quickly instead of finding line by line the right number every time?

The ideal would be something like this:
type a number and automatically send me to the right line to add the two weight numbers
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I have an Excel table of that format

number | description | weight 1 | weight 2 | number | description | weight 1 | weight 2

Excel Table can not have the same headers, so you've a range not a table
 
Upvote 0
I think it would be helpful if you could post a small sample of your data and your expected result.

You cannot upload files to this site. But there are tools you can use to post screen images. They are listed in Section B of this link here: http://www.mrexcel.com/forum/board-a...forum-use.html.
Also, there is a Test Here forum on this board that you can use to test out these tools to make sure they are working correctly before using them in your question.
 
Upvote 0
I think it would be helpful if you could post a small sample of your data and your expected result.

You cannot upload files to this site. But there are tools you can use to post screen images. They are listed in Section B of this link here: http://www.mrexcel.com/forum/board-a...forum-use.html.
Also, there is a Test Here forum on this board that you can use to test out these tools to make sure they are working correctly before using them in your question.



Sheet1

ABCDEFGH
1codedescriptioncharged kgreceived kgcodedescriptioncharged kgreceived kg
2ab25tomatoes542Cherries
3ab26potato 1fs569chips
4ab27potato 2eq12chocolate
5de12spaggetidd588chowder
6fd25corn2354clams
7ef256melonas54coffee

<tbody>
</tbody>



my task is a daily report of deliveries.
 
Upvote 0
Is that the before or after picture?
I am trying to get a clearer picture of what the data you have currently looks like, and what exactly you are trying to do with it.
 
Upvote 0
I have an Excel table of that format

number | description | weight 1 | weight 2 | number | description | weight 1 | weight 2





I have to fill in data by finding the number and manually fill in weight1 and weight2

Is there a way I could just make the data entry quickly instead of finding line by line the right number every time?

The ideal would be something like this:
type a number and automatically send me to the right line to add the two weight numbers
Try this:
Code:
Sub Find_In_Column_A()


Dim FRD As Variant, Find_Range As String, B as worksheet


Try_Again:


FRD = Application.InputBox("Value to find in Column A")


Set B = ActiveSheet


With B
    On Error GoTo Not_Found
    Find_Range = .Range("A:A").Find(FRD).Address
    Application.Goto .Range(Find_Range)
                     .Range(Find_Range).EntireRow.Select


End With


Exit Sub
Not_Found:
        If MsgBox("The selected code { " & FRD & " } was not found within column A.  & vbNewLine & vbnewline & Would you like to try again ?", vbYesNo, "Please choose") _
            = vbYes Then GoTo Try_Again


End Sub
 
Last edited:
Upvote 0
Try this:
Shorter version
Code:
Sub Find_In_Column_A()


Dim FRD As Variant, Find_Range As String: Set B = ActiveSheet


Try_Again:


FRD = Application.InputBox("Insert lookup code")


    On Error GoTo Not_Found
    
    Application.Goto B.Range("A:A").Find(FRD)
    ActiveCell.EntireRow.Select


Exit Sub
Not_Found:
        If MsgBox("The selected code { " & FRD & " } was not found within column A" & vbNewLine & vbNewLine & "Would you like to try again ?", vbYesNo, "Please choose") _
            = vbYes Then GoTo Try_Again


End Sub
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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