LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Complex Formula Solution using Search and IF

I am using Office 2003 on Windows XP.

I need a spreadsheet formula I can write into the sheet from code that would
use the following logic, but I'm stumped. I would like to do this using a
single formula because it is really for another user and their sheet
structure demands it:

IF G6 LIKE "*FUTURE*" Then E6 * N6 * 10000
IF G6 LIKE "*SWAP*" Then E6 * N6 * 2500
IF G6 NOT LIKE "*FUTURE*" NOR LIKE "*SWAP*" Then blank (i.e. "")

I know in place of "LIKE" I need to use "Search", but I can't crack the
logic. Could someone please post a solution?

Thanks much in advance.
 
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
Simple problem complex solution? Aaron Excel Worksheet Functions 3 July 9th 09 03:39 AM
A rather difficult & complex statistical search formula needed Vasilis Tergen Excel Worksheet Functions 4 January 7th 07 07:31 PM
Trying to find out a solution for a complex formula Weasel Excel Discussion (Misc queries) 4 March 22nd 06 07:41 PM
Help wih complex formula or macro or solution Sal Young Excel Programming 6 October 19th 05 10:03 PM
Help with complex formula or macro or solution Sal Young Excel Programming 3 October 17th 05 04:25 PM


All times are GMT +1. The time now is 08:56 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"