Excel formula
Closed
aji1311
Posts
2
Registration date
Thursday 13 August 2009
Status
Member
Last seen
15 August 2009
-
14 Aug 2009 à 10:53
kaiyasit Posts 30 Registration date Sunday 9 August 2009 Status Member Last seen 20 April 2010 - 15 Aug 2009 à 06:35
kaiyasit Posts 30 Registration date Sunday 9 August 2009 Status Member Last seen 20 April 2010 - 15 Aug 2009 à 06:35
Related:
- Excel formula
- Grade formula in excel marksheet - Guide
- Formula bar in excel - Guide
- Excel mod apk for pc - Download - Spreadsheets
- Number to words in excel formula - Guide
- Logitech formula vibration feedback wheel - Download - Drivers
4 responses
kaiyasit
Posts
30
Registration date
Sunday 9 August 2009
Status
Member
Last seen
20 April 2010
12
14 Aug 2009 à 21:45
14 Aug 2009 à 21:45
Use Vlookup() formula in remarks column at first sheet.
assume you have 2 sheets on one workbook.
first sheet is "sheet1"
second sheet is "sheet2"
at first sheet on column "remarks"
=IF(ISERROR(VLOOKUP(A2,Sheet2!A:B,2,0)),"",VLOOKUP(A2,Sheet2!A:B,2,0))
this may help you.......
assume you have 2 sheets on one workbook.
first sheet is "sheet1"
second sheet is "sheet2"
at first sheet on column "remarks"
=IF(ISERROR(VLOOKUP(A2,Sheet2!A:B,2,0)),"",VLOOKUP(A2,Sheet2!A:B,2,0))
this may help you.......
aji1311
Posts
2
Registration date
Thursday 13 August 2009
Status
Member
Last seen
15 August 2009
15 Aug 2009 à 02:49
15 Aug 2009 à 02:49
wonderful, thank you so much,
one more, if my second sheet has more than 6 entries, how to update the master sheet with the extra entries
example
No,remarks
1,hello
2, hai
3, bye
4, good
5, bad
6, ok
i open another sheet, pasting the new values
No Remarks
1, hello
2, hello
3, good night
4, bad
5, good
6, not ok
7, excellent
8, fine
then master sheet should be
No,Remarks
1, hello
2, hello
3, good night
4, bad
5, good
6, not ok
7, excellent
8, fine
thanks in advance..
one more, if my second sheet has more than 6 entries, how to update the master sheet with the extra entries
example
No,remarks
1,hello
2, hai
3, bye
4, good
5, bad
6, ok
i open another sheet, pasting the new values
No Remarks
1, hello
2, hello
3, good night
4, bad
5, good
6, not ok
7, excellent
8, fine
then master sheet should be
No,Remarks
1, hello
2, hello
3, good night
4, bad
5, good
6, not ok
7, excellent
8, fine
thanks in advance..
kaiyasit
Posts
30
Registration date
Sunday 9 August 2009
Status
Member
Last seen
20 April 2010
12
15 Aug 2009 à 05:55
15 Aug 2009 à 05:55
Try this on your VBA
Sub Update1()
Dim A, B As String
Dim i, j As Integer
A = 0
i = 2
Do Until IsNull(A) Or A = ""
A = Sheets("Sheet1").Cells(i, 1)
i = i + 1
Loop
B = 0
j = 2
Do Until IsNull(B) Or B = ""
B = Sheets("Sheet2").Cells(j, 1)
j = j + 1
Loop
If i < j Then
For i = i + 1 To j + 1
Sheets("Sheet1").Cells(i, 1).Value = Sheets("Sheet2").Cells(i, 1).Value
temp = "=IF(ISERROR(VLOOKUP(A" & i & ",Sheet2!A:B,2,0))," & "No data" & ",VLOOKUP(A" & i & ",Sheet2!A:B,2,0)) "
Sheets("Sheet1").Cells(i, 2).Formula = temp
Next i
End If
End Sub
Sub Update1()
Dim A, B As String
Dim i, j As Integer
A = 0
i = 2
Do Until IsNull(A) Or A = ""
A = Sheets("Sheet1").Cells(i, 1)
i = i + 1
Loop
B = 0
j = 2
Do Until IsNull(B) Or B = ""
B = Sheets("Sheet2").Cells(j, 1)
j = j + 1
Loop
If i < j Then
For i = i + 1 To j + 1
Sheets("Sheet1").Cells(i, 1).Value = Sheets("Sheet2").Cells(i, 1).Value
temp = "=IF(ISERROR(VLOOKUP(A" & i & ",Sheet2!A:B,2,0))," & "No data" & ",VLOOKUP(A" & i & ",Sheet2!A:B,2,0)) "
Sheets("Sheet1").Cells(i, 2).Formula = temp
Next i
End If
End Sub
kaiyasit
Posts
30
Registration date
Sunday 9 August 2009
Status
Member
Last seen
20 April 2010
12
15 Aug 2009 à 06:35
15 Aug 2009 à 06:35
Update.........i miss some code on previous
Sub Update1()
Dim A, B As String
Dim i, j As Integer
A = 0
i = 2
Do Until IsNull(A) Or A = ""
A = Sheets("Sheet1").Cells(i, 1)
i = i + 1
Loop
B = 0
j = 1
Do Until IsNull(B) Or B = ""
B = Sheets("Sheet2").Cells(j, 1)
j = j + 1
Loop
i = i - 2
j = j - 2
If i < j Then
For i = i + 1 To j
Sheets("Sheet1").Cells(i, 1).Value = Sheets("Sheet2").Cells(i, 1).Value
temp = "=IF(ISERROR(VLOOKUP(A" & i & ",Sheet2!A:B,2,0))," & "No data" & ",VLOOKUP(A" & i & ",Sheet2!A:B,2,0)) "
Sheets("Sheet1").Cells(i, 2).Formula = temp
Next i
End If
End Sub
Sub Update1()
Dim A, B As String
Dim i, j As Integer
A = 0
i = 2
Do Until IsNull(A) Or A = ""
A = Sheets("Sheet1").Cells(i, 1)
i = i + 1
Loop
B = 0
j = 1
Do Until IsNull(B) Or B = ""
B = Sheets("Sheet2").Cells(j, 1)
j = j + 1
Loop
i = i - 2
j = j - 2
If i < j Then
For i = i + 1 To j
Sheets("Sheet1").Cells(i, 1).Value = Sheets("Sheet2").Cells(i, 1).Value
temp = "=IF(ISERROR(VLOOKUP(A" & i & ",Sheet2!A:B,2,0))," & "No data" & ",VLOOKUP(A" & i & ",Sheet2!A:B,2,0)) "
Sheets("Sheet1").Cells(i, 2).Formula = temp
Next i
End If
End Sub