PC Review


Reply
Thread Tools Rate Thread

Calculating a cell

 
 
nabboo22
Guest
Posts: n/a
 
      14th Sep 2008
Hello

I need to scroll down column C until it finds "Grand Total". Afterwards
make the value of J2 equal to the value of the cell on the same row as "Grand
Total", but column P.

Thanks in advance for the help.

Regards,
John
 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      14th Sep 2008
give this a try

Sub test()
Dim rngfound As Range
Dim ws As Worksheet
Set ws = Worksheets("Sheet1")

With ws.Columns("C")
Set rngfound = .Find("Grand Total", lookat:=xlWhole,
LookIn:=xlValues)
End With
If Not rngfound Is Nothing Then
With ws
.Range("J2") = .Range("P" & rngfound.Row).Value
End With
End If
End Sub


--


Gary


"nabboo22" <(E-Mail Removed)> wrote in message
news:F8D3356B-1B51-469D-A536-(E-Mail Removed)...
> Hello
>
> I need to scroll down column C until it finds "Grand Total". Afterwards
> make the value of J2 equal to the value of the cell on the same row as "Grand
> Total", but column P.
>
> Thanks in advance for the help.
>
> Regards,
> John



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Calculating inside a cell? Spiky Microsoft Excel Worksheet Functions 0 21st Aug 2008 09:14 PM
Calculating sum of adjacent cell Danno 24/7 Microsoft Excel Misc 2 8th May 2008 09:25 AM
Calculating a cell reference =?Utf-8?B?RGVhbkdyaWZmaXRoMDE=?= Microsoft Excel Misc 1 19th Dec 2005 11:01 AM
Calculating a cell address Jeff Hooper Microsoft Excel Worksheet Functions 1 25th Jul 2004 02:18 PM
calculating a certain cell to add at different prices Melissa Microsoft Excel Misc 2 6th Oct 2003 04:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:47 PM.