Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default using two functions in the same cell

OK here's the problem. Asignment in school due tomorrow. I have to use the
MIN function to find the lowest expense in a row of three cells (B38 C38 and
D38). No problem thee =MIN(B38:D38). But I have to embed that function
within the LOOKUP function in order to find the matching column label (Year 1
Year 2 and Year 3) which are in cells B32 C32 and D32. I have to print
"minimum expense year" under the the appropriate cell with the lowest
expense. The cells immediately below the three cells with the expense
numbers are B39 C39 and D39. I can't seem to get this right. Any
suggestions would be appreciated! Brian
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default using two functions in the same cell

Not real sure what you're wanting but here's one way to get the column
header:

Year1...Year2...Year3
...50.........27........99

="Year"&MATCH(MIN(B38:D38),B38:D38,0)

If your column headers aren't really named "Year_n":

=INDEX(B32:D32,MATCH(MIN(B38:D38),B38:D38,0))

I have to embed that function within the LOOKUP function


The LOOKUP function *requires* the lookup_vector be sorted in ascending
order. If it's not sorted it won't work properly.

--
Biff
Microsoft Excel MVP


"Brian204845" wrote in message
...
OK here's the problem. Asignment in school due tomorrow. I have to use
the
MIN function to find the lowest expense in a row of three cells (B38 C38
and
D38). No problem thee =MIN(B38:D38). But I have to embed that function
within the LOOKUP function in order to find the matching column label
(Year 1
Year 2 and Year 3) which are in cells B32 C32 and D32. I have to print
"minimum expense year" under the the appropriate cell with the lowest
expense. The cells immediately below the three cells with the expense
numbers are B39 C39 and D39. I can't seem to get this right. Any
suggestions would be appreciated! Brian



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default using two functions in the same cell

Thanks Biff. The assignment question is this, "Find the lowest total exoense
amount and print the message 'minimum expense year'under the cell where the
lowest total expense occurs." I can use the MIN function to find the lowest
value easily enough but the problem is then to get the formula to print that
message. Perhaps I'm looking too hard using the LOOKUP function. Can that
minimum function be embedded in another function to print that message in the
cell below the lowest total. The colums are indeed titled Year 1 through 3
left to right.

"Brian204845" wrote:

OK here's the problem. Asignment in school due tomorrow. I have to use the
MIN function to find the lowest expense in a row of three cells (B38 C38 and
D38). No problem thee =MIN(B38:D38). But I have to embed that function
within the LOOKUP function in order to find the matching column label (Year 1
Year 2 and Year 3) which are in cells B32 C32 and D32. I have to print
"minimum expense year" under the the appropriate cell with the lowest
expense. The cells immediately below the three cells with the expense
numbers are B39 C39 and D39. I can't seem to get this right. Any
suggestions would be appreciated! Brian

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default using two functions in the same cell

Here's what I came up with but the syntax ia wrong.
=LOOKUP(MIN(B38:D38),B32:D32,B39:D39)

"Brian204845" wrote:

OK here's the problem. Asignment in school due tomorrow. I have to use the
MIN function to find the lowest expense in a row of three cells (B38 C38 and
D38). No problem thee =MIN(B38:D38). But I have to embed that function
within the LOOKUP function in order to find the matching column label (Year 1
Year 2 and Year 3) which are in cells B32 C32 and D32. I have to print
"minimum expense year" under the the appropriate cell with the lowest
expense. The cells immediately below the three cells with the expense
numbers are B39 C39 and D39. I can't seem to get this right. Any
suggestions would be appreciated! Brian

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default using two functions in the same cell

Try this in B39 and copy across to D39:

=IF(B38=MIN($B38:$D38),"minimum expense year","")

I don't know how "invovled" your assignment is but some things to consider:

If *all* the cells in B338:D38 are empty the formula will return the message
in each cell B39:D39

If there are multiple instances of the MIN, each instance will return the
message.

--
Biff
Microsoft Excel MVP


"Brian204845" wrote in message
...
Here's what I came up with but the syntax ia wrong.
=LOOKUP(MIN(B38:D38),B32:D32,B39:D39)

"Brian204845" wrote:

OK here's the problem. Asignment in school due tomorrow. I have to use
the
MIN function to find the lowest expense in a row of three cells (B38 C38
and
D38). No problem thee =MIN(B38:D38). But I have to embed that function
within the LOOKUP function in order to find the matching column label
(Year 1
Year 2 and Year 3) which are in cells B32 C32 and D32. I have to print
"minimum expense year" under the the appropriate cell with the lowest
expense. The cells immediately below the three cells with the expense
numbers are B39 C39 and D39. I can't seem to get this right. Any
suggestions would be appreciated! Brian





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default using two functions in the same cell

Thanks Biff! That worked. I now see how it works!

"T. Valko" wrote:

Try this in B39 and copy across to D39:

=IF(B38=MIN($B38:$D38),"minimum expense year","")

I don't know how "invovled" your assignment is but some things to consider:

If *all* the cells in B338:D38 are empty the formula will return the message
in each cell B39:D39

If there are multiple instances of the MIN, each instance will return the
message.

--
Biff
Microsoft Excel MVP


"Brian204845" wrote in message
...
Here's what I came up with but the syntax ia wrong.
=LOOKUP(MIN(B38:D38),B32:D32,B39:D39)

"Brian204845" wrote:

OK here's the problem. Asignment in school due tomorrow. I have to use
the
MIN function to find the lowest expense in a row of three cells (B38 C38
and
D38). No problem thee =MIN(B38:D38). But I have to embed that function
within the LOOKUP function in order to find the matching column label
(Year 1
Year 2 and Year 3) which are in cells B32 C32 and D32. I have to print
"minimum expense year" under the the appropriate cell with the lowest
expense. The cells immediately below the three cells with the expense
numbers are B39 C39 and D39. I can't seem to get this right. Any
suggestions would be appreciated! Brian




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default using two functions in the same cell

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Brian204845" wrote in message
...
Thanks Biff! That worked. I now see how it works!

"T. Valko" wrote:

Try this in B39 and copy across to D39:

=IF(B38=MIN($B38:$D38),"minimum expense year","")

I don't know how "invovled" your assignment is but some things to
consider:

If *all* the cells in B338:D38 are empty the formula will return the
message
in each cell B39:D39

If there are multiple instances of the MIN, each instance will return the
message.

--
Biff
Microsoft Excel MVP


"Brian204845" wrote in message
...
Here's what I came up with but the syntax ia wrong.
=LOOKUP(MIN(B38:D38),B32:D32,B39:D39)

"Brian204845" wrote:

OK here's the problem. Asignment in school due tomorrow. I have to
use
the
MIN function to find the lowest expense in a row of three cells (B38
C38
and
D38). No problem thee =MIN(B38:D38). But I have to embed that
function
within the LOOKUP function in order to find the matching column label
(Year 1
Year 2 and Year 3) which are in cells B32 C32 and D32. I have to
print
"minimum expense year" under the the appropriate cell with the lowest
expense. The cells immediately below the three cells with the expense
numbers are B39 C39 and D39. I can't seem to get this right. Any
suggestions would be appreciated! Brian






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
If and Or Functions in Same Cell Candentco Creative Collection[_2_] Excel Worksheet Functions 4 April 20th 07 10:14 PM
Two functions in one cell??? Skip Excel Worksheet Functions 4 May 10th 06 09:11 PM
Can you put two functions in one cell? daduce_2 Excel Worksheet Functions 3 February 21st 06 12:31 PM
# of Functions per cell SUB-ZERO Excel Worksheet Functions 3 January 23rd 05 10:35 PM
# of Functions per cell >> More SUB-ZERO Excel Worksheet Functions 0 January 23rd 05 01:07 AM


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