LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Replacing a value from a formula

Hello:

I have a workbook that has 3 sheets. Summary sheet,
detail sheet and the 3rd is used to list info used by
vlookups (called contracts). I have code that if in the
total of the dues column of the detail sheet is equal to
zero, use the formula in H10, else paste the total in H10.

I need additional code now to change the lookup value in
cell F10 to read 4F Dues. I cannot change the source
info from the lookup list. Does anyone have any ideas
how to do this?

Formulas in summary sheet if dues=0:
F10: =VLOOKUP(VALUE($C$9),Contracts!A1:AI27,14,TRUE)
G10: =VLOOKUP(VALUE($C$9),Contracts!A1:AI27,15,TRUE)
H10: =ROUND(H35*$C$27,2)

Displayed as:
C27: 100.00
F10: 4G Dues
G10: 3.00%
H10: 3.00

Formulas in summary sheet if dues<0:
F10: =VLOOKUP(VALUE($C$9),Contracts!A1:AI27,14,TRUE)
G10: =VLOOKUP(VALUE($C$9),Contracts!A1:AI27,15,TRUE)
H10: 50.00

Should be Displayed as:
C27: 100.00
F10: 4F Dues
G10: 3.00%
H10: 50.00
 
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
Replacing ISERROR Formula Ismael R Excel Worksheet Functions 6 March 5th 09 10:13 PM
help on replacing this formula Abbey Normal Excel Discussion (Misc queries) 6 August 23rd 07 05:17 PM
replacing text within a formula jimswinder Excel Worksheet Functions 5 January 22nd 07 08:16 AM
Replacing DirectPrecedents in a Formula Gappodi Excel Programming 2 November 19th 03 03:47 PM
Replacing a value within a string using a formula solo_razor[_17_] Excel Programming 2 October 30th 03 09:46 AM


All times are GMT +1. The time now is 08:48 AM.

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"