Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11
Default IF logic formula

Is there a formula that would allow the following: the entry of 6 variables
(a, b, c, , 1, 2, 3) into cells A1 through A6 as either single entries
(a..b..c..etc) or multiple entries with a maximum of 3 variables
(ab..ac3..etc) that will result in an "X" inserted into cell A12

--
rwfster
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,420
Default IF logic formula

No, a formula only returns a result to its parent cell.

--
__________________________________
HTH

Bob

"rwfster" wrote in message
...
Is there a formula that would allow the following: the entry of 6
variables
(a, b, c, , 1, 2, 3) into cells A1 through A6 as either single entries
(a..b..c..etc) or multiple entries with a maximum of 3 variables
(ab..ac3..etc) that will result in an "X" inserted into cell A12

--
rwfster



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,059
Default IF logic formula

On Feb 24, 7:25*am, rwfster wrote:
Is there a formula that would allow the following:
*the entry of 6 variables (a, b, c, , 1, 2, 3) into
cells A1 through A6 as either single entries
(a..b..c..etc) or multiple entries with a maximum
of 3 variables (ab..ac3..etc) that will result in
an "X" inserted into cell A12


Your requirement is unclear to me. But perhaps the following paradigm
will lead you to a usable solution.

Suppose you have the following VBA function:

Function foobar(Optional flag)
If IsMissing(flag) Then
foobar = Array("a", "b", "c", "1", "2", "3")
Else
foobar = Array("ab", "c1", "23", "X", "X", "X")
End If
End Function

Then if you select 6 cells in a row, you can enter the following array
formula (commit with ctrl-shift-Enter, not simply Enter):

=foobar()

or

=foobar(1)

Note: If you would like FOOBAR to return a column of cells, use
Application.Transpose(Array(...)). Or simply call =transpose(foobar
()), again as an array formula.
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
Need help with logic or Vlookup formula Andrea Excel Worksheet Functions 9 October 17th 08 02:11 AM
Logic Formula Truc Lopez Excel Worksheet Functions 6 January 4th 07 05:16 PM
Array Formula Using Max Match Logic JR573PUTT Excel Discussion (Misc queries) 4 February 26th 06 05:09 AM
Logic formula using Time rkemper Excel Discussion (Misc queries) 4 December 23rd 05 01:47 AM
Need help setting up a formula using perhaps the logic functions . drlisa0318 Excel Worksheet Functions 1 February 11th 05 10:17 PM


All times are GMT +1. The time now is 01:45 PM.

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

About Us

"It's about Microsoft Excel"