#1   Report Post  
Jeff
 
Posts: n/a
Default Copy Row

Hello,

Id to create a VBA Macro with an IF condition, in my Workbook B in row
U14, that would evaluate rows B5 or C5 in workbook Forecast Template,xls in
order to copy the row with the greatest value. Is that possible?
Thanks in advance for any help,


  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Jeff,

In cell U14, use the formula

=MAX('[Forecast Template.xls]Sheet1'!B5:C5)

Change the Sheet1 to the actual sheet name.

HTH,
Bernie
MS Excel MVP

"Jeff" wrote in message
...
Hello,

I'd to create a VBA Macro with an " IF" condition, in my Workbook B in row
U14, that would evaluate rows B5 or C5 in workbook "Forecast Template,xls"

in
order to copy the row with the greatest value. Is that possible?
Thanks in advance for any help,




  #3   Report Post  
Jeff
 
Posts: n/a
Default

Hi,

How can I multiply to value in U14 by -1 ?

"Bernie Deitrick" wrote:

Jeff,

In cell U14, use the formula

=MAX('[Forecast Template.xls]Sheet1'!B5:C5)

Change the Sheet1 to the actual sheet name.

HTH,
Bernie
MS Excel MVP

"Jeff" wrote in message
...
Hello,

I'd to create a VBA Macro with an " IF" condition, in my Workbook B in row
U14, that would evaluate rows B5 or C5 in workbook "Forecast Template,xls"

in
order to copy the row with the greatest value. Is that possible?
Thanks in advance for any help,





  #4   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Jeff,

If you are using the MAX formula in U14, simply use a minus sign after the
Equal Sign.

=-MAX('[Forecast Template.xls]Sheet1'!B5:C5)

or if you need it in another cell,

=-U14

HTH,
Bernie
MS Excel MVP

"Jeff" wrote in message
...
Hi,

How can I multiply to value in U14 by -1 ?

"Bernie Deitrick" wrote:

Jeff,

In cell U14, use the formula

=MAX('[Forecast Template.xls]Sheet1'!B5:C5)

Change the Sheet1 to the actual sheet name.

HTH,
Bernie
MS Excel MVP

"Jeff" wrote in message
...
Hello,

I'd to create a VBA Macro with an " IF" condition, in my Workbook B in

row
U14, that would evaluate rows B5 or C5 in workbook "Forecast

Template,xls"
in
order to copy the row with the greatest value. Is that possible?
Thanks in advance for any help,







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 1 February 10th 05 11:05 PM
How do i copy columns of data in notepad into excel? JJ Excel Discussion (Misc queries) 1 February 10th 05 09:21 PM
Copy and pasting graphs to PowerPoint JZip Excel Discussion (Misc queries) 0 January 6th 05 08:29 PM
how do I make a copy of a worksheet and retain formulas but not data FireBrick Setting up and Configuration of Excel 2 December 29th 04 07:33 PM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM


All times are GMT +1. The time now is 12:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"