I have a sheet1 where data is diaplayed in column A based on a formula, Now
the data can be displayed anywhere between cell A1 and A10,
What I want to do is: I want to display this value from Sheet1(A1:A10) in
Sheet2 Cell B1
So basically it is a range of cells on sheet1 in column A that the value can
be displayed(it is random) and I want to display that value in Sheet2 Cell B1
Hope I made it clear
Thanks in Advance
'VBA
Sheets("Sheet2").Range("B1") =
Worksheetfunction.Max(Sheets("Sheet1").Range("A1:A10"))
If this post helps click Yes
---------------
Jacob Skaria
Using max would work for numberic values rite? I am suppose to display a mix
of alplabets and numbers, something like C34, AI559 etc
So, this type of data would be displayed in any of the cells in
sheet1(A1:A10) and I have to display that in Sheet2(CellB1)
Thanks in Advance
VBA
Range("Sheet2!B1") = _
WorksheetFunction.Index(Range("Sheet1!A1:A10"), _
Application.Match("*", Range("Sheet1!A1:A10"), 0))
Thanks in advance
=INDEX('Sheet 1'!A1:A10,MATCH("*",'Sheet 1'!A1:A10,0))
Thanks
For eg, I got the value the first time, then I cleared the colulmns A1:A10
and did the process again, but now the value is not displayed in Sheet 2 : B1
Hope I made it clear,
For eg, First Time I got a Value on 1A2 which was displayed
second time I got a value of 7E9 which was not displayed
third time I got a value of 1A2 again and then it was displayed again.
The value in sheet 2 Cell B1 does get cleared once I clear the contents in
Sheet1 Cell A1:A10, But it wont display a different value for some reason.
Can you please help me with this? I tried other ways to get this to work
but it doesnt work. I think VBA would be a better choice to work this out.
I tried this in VBA, But it doesnt work.
Range("Sheet2!B1") = WorksheetFunction.Index(Range("Sheet1!A1:A10"), _
Application.Match("*", Range("Sheet1!A1:A10"), 0))
Error I get:
Method "Range" or Object "_Worksheet" Failed