Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-26-2008, 12:16 PM
Oslopelle
 
Posts: n/a
can lookup return cell reference istead of "text" for sumif?

I am trying to use a lookup-function to determine a different sum
range for several criteria.
Like so:
=Sumif($A$7:$A$1447;"<"&X3;vlookup(e3;AT3:AU11;2;f alse)-Sumif($A$7:$A
$1447;"<"&y3;vlookup(e3;AT3:AU11;2;false)
The problem is that the vlookup returns text and not the cell
reference. Is there a way to get the answer from the lookup expressed
as cell reference instead of text, since sumif can't use text, just
the cell reference?

I use it to calculate the number of hours the staff should be paid, so
it's different from weekdays to saturdays, holidays and sundays
in at3 to at11 i have the days (1 for sunday) of the week and in au3
to au11 i have the ranges for the reference table with pay per minute.
1 sheet1!$E$7:$E$1447
2 sheet1!$C$7:$C$1447
3 sheet1!$C$7:$C$1447
4 sheet1!$C$7:$C$1447
5 sheet1!$C$7:$C$1447
6 sheet1!$C$7:$C$1447
7 sheet1!$D$7:$D$1447
holliday sheet1!$F$7:$F$1447
eve sheet1!$G$7:$G$1447

/Oslopelle
Reply With Quote
  #2 (permalink)  
Old 04-26-2008, 03:04 PM
Dave Peterson
 
Posts: n/a
Re: can lookup return cell reference istead of "text" for sumif?

Try wrapping the =vlookup() with =indirect(vlookup())

=Sumif($A$7:$A$1447;"<"&X3;indirect(vlookup(e3;AT3 :AU11;2;false)))
-Sumif($A$7:$A$1447;"<"&y3;indirect(vlookup(e3;AT3: AU11;2;false)))

(aren't you missing some ()'s in your posted formula?

Oslopelle wrote:
>
> I am trying to use a lookup-function to determine a different sum
> range for several criteria.
> Like so:
> =Sumif($A$7:$A$1447;"<"&X3;vlookup(e3;AT3:AU11;2;f alse)-Sumif($A$7:$A
> $1447;"<"&y3;vlookup(e3;AT3:AU11;2;false)
> The problem is that the vlookup returns text and not the cell
> reference. Is there a way to get the answer from the lookup expressed
> as cell reference instead of text, since sumif can't use text, just
> the cell reference?
>
> I use it to calculate the number of hours the staff should be paid, so
> it's different from weekdays to saturdays, holidays and sundays
> in at3 to at11 i have the days (1 for sunday) of the week and in au3
> to au11 i have the ranges for the reference table with pay per minute.
> 1 sheet1!$E$7:$E$1447
> 2 sheet1!$C$7:$C$1447
> 3 sheet1!$C$7:$C$1447
> 4 sheet1!$C$7:$C$1447
> 5 sheet1!$C$7:$C$1447
> 6 sheet1!$C$7:$C$1447
> 7 sheet1!$D$7:$D$1447
> holliday sheet1!$F$7:$F$1447
> eve sheet1!$G$7:$G$1447
>
> /Oslopelle


--

Dave Peterson
Reply With Quote
  #3 (permalink)  
Old 04-26-2008, 11:38 PM
Oslopelle
 
Posts: n/a
Re: can lookup return cell reference istead of "text" for sumif?

On 26 Apr, 16:04, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> Try wrapping the =vlookup() with =indirect(vlookup())
>
> =Sumif($A$7:$A$1447;"<"&X3;indirect(vlookup(e3;AT3 :AU11;2;false)))
> -Sumif($A$7:$A$1447;"<"&y3;indirect(vlookup(e3;AT3: AU11;2;false)))
>
> (aren't you missing some ()'s in your posted formula?
>
>
>
>
>
> Oslopelle wrote:
>
> > I am trying to use a lookup-function to determine a different sum
> > range for several criteria.
> > Like so:
> > =Sumif($A$7:$A$1447;"<"&X3;vlookup(e3;AT3:AU11;2;f alse)-Sumif($A$7:$A
> > $1447;"<"&y3;vlookup(e3;AT3:AU11;2;false)
> > The problem is that the vlookup returns text and not the cell
> > reference. Is there a way to get the answer from the lookup expressed
> > as cell reference instead of text, since sumif can't use text, just
> > the cell reference?

>
> > I use it to calculate the number of hours the staff should be paid, so
> > it's different from weekdays to saturdays, holidays and sundays
> > in at3 to at11 i have the days (1 for sunday) of the week and in au3
> > to au11 i have the ranges for the reference table with pay per minute.
> > 1 * * * sheet1!$E$7:$E$1447
> > 2 * * * sheet1!$C$7:$C$1447
> > 3 * * * sheet1!$C$7:$C$1447
> > 4 * * * sheet1!$C$7:$C$1447
> > 5 * * * sheet1!$C$7:$C$1447
> > 6 * * * sheet1!$C$7:$C$1447
> > 7 * * * sheet1!$D$7:$D$1447
> > holliday * * * *sheet1!$F$7:$F$1447
> > eve * * sheet1!$G$7:$G$1447

>
> > /Oslopelle

>
> --
>
> Dave Peterson- Dölj citerad text -
>
> - Visa citerad text -



unfortunatley i ony get an error message when trying to make an
indirect function. In swedish it comes out as beräkningsbar -
calculable an the sumif won't accept that as a cell reference in the
sum range.
I now have:
Sumif(sheet1!$A$7:$A$1447;"<"&X3;vlookup(e3;sheet1 !AT3:AU11;2;false))-
sumif(sheet1!$A$7:$A$1447;"<"&Y3;vlookup(e3;sheet1 !AT3:AU11;2;false))

if e3= 4
the lookup would return the answer "sheet1!$c$7:$c$1447"


AT AU
> > 1 sheet1!$E$7:$E$1447
> > 2 sheet1!$C$7:$C$1447
> > 3 sheet1!$C$7:$C$1447
> > 4 sheet1!$C$7:$C$1447
> > 5 sheet1!$C$7:$C$1447
> > 6 sheet1!$C$7:$C$1447
> > 7 sheet1!$D$7:$D$1447
> > holliday sheet1!$F$7:$F$1447
> > eve sheet1!$G$7:$G$1447
> >

the problem is that the sumif does not recognize that result as a cell
reference. it thinks it is text and the sumif returns an error.How do
i change this? it only needs to recognize the result as a range.

a contains a day in minutes, x is the beginning time of the empployee,
y is the ending time of the employee, c,d, e, f, g are the respective
compensation the emplyee gets for working that minute (double time=2,
150% =1,5, 133%=1,33 or normal time=1).

a is the day, 1 for sunday, 2 for monday and so on, au is a written
cell reference.

Reply With Quote
  #4 (permalink)  
Old 04-27-2008, 01:44 AM
Dave Peterson
 
Posts: n/a
Re: can lookup return cell reference istead of "text" for sumif?

It worked for me.

I don't have another suggestion--except for you to try it again.

You could explain where each range is--is the table on sheet1 or the sheet with
the formula?

And please copy|paste the formula you're using from the formula bar. Don't type
it into the message. Too many things can go wrong.

Oslopelle wrote:
>
> On 26 Apr, 16:04, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> > Try wrapping the =vlookup() with =indirect(vlookup())
> >
> > =Sumif($A$7:$A$1447;"<"&X3;indirect(vlookup(e3;AT3 :AU11;2;false)))
> > -Sumif($A$7:$A$1447;"<"&y3;indirect(vlookup(e3;AT3: AU11;2;false)))
> >
> > (aren't you missing some ()'s in your posted formula?
> >
> >
> >
> >
> >
> > Oslopelle wrote:
> >
> > > I am trying to use a lookup-function to determine a different sum
> > > range for several criteria.
> > > Like so:
> > > =Sumif($A$7:$A$1447;"<"&X3;vlookup(e3;AT3:AU11;2;f alse)-Sumif($A$7:$A
> > > $1447;"<"&y3;vlookup(e3;AT3:AU11;2;false)
> > > The problem is that the vlookup returns text and not the cell
> > > reference. Is there a way to get the answer from the lookup expressed
> > > as cell reference instead of text, since sumif can't use text, just
> > > the cell reference?

> >
> > > I use it to calculate the number of hours the staff should be paid, so
> > > it's different from weekdays to saturdays, holidays and sundays
> > > in at3 to at11 i have the days (1 for sunday) of the week and in au3
> > > to au11 i have the ranges for the reference table with pay per minute.
> > > 1 sheet1!$E$7:$E$1447
> > > 2 sheet1!$C$7:$C$1447
> > > 3 sheet1!$C$7:$C$1447
> > > 4 sheet1!$C$7:$C$1447
> > > 5 sheet1!$C$7:$C$1447
> > > 6 sheet1!$C$7:$C$1447
> > > 7 sheet1!$D$7:$D$1447
> > > holliday sheet1!$F$7:$F$1447
> > > eve sheet1!$G$7:$G$1447

> >
> > > /Oslopelle

> >
> > --
> >
> > Dave Peterson- Dölj citerad text -
> >
> > - Visa citerad text -

>
> unfortunatley i ony get an error message when trying to make an
> indirect function. In swedish it comes out as beräkningsbar -
> calculable an the sumif won't accept that as a cell reference in the
> sum range.
> I now have:
> Sumif(sheet1!$A$7:$A$1447;"<"&X3;vlookup(e3;sheet1 !AT3:AU11;2;false))-
> sumif(sheet1!$A$7:$A$1447;"<"&Y3;vlookup(e3;sheet1 !AT3:AU11;2;false))
>
> if e3= 4
> the lookup would return the answer "sheet1!$c$7:$c$1447"
>
> AT AU
> > > 1 sheet1!$E$7:$E$1447
> > > 2 sheet1!$C$7:$C$1447
> > > 3 sheet1!$C$7:$C$1447
> > > 4 sheet1!$C$7:$C$1447
> > > 5 sheet1!$C$7:$C$1447
> > > 6 sheet1!$C$7:$C$1447
> > > 7 sheet1!$D$7:$D$1447
> > > holliday sheet1!$F$7:$F$1447
> > > eve sheet1!$G$7:$G$1447
> > >

> the problem is that the sumif does not recognize that result as a cell
> reference. it thinks it is text and the sumif returns an error.How do
> i change this? it only needs to recognize the result as a range.
>
> a contains a day in minutes, x is the beginning time of the empployee,
> y is the ending time of the employee, c,d, e, f, g are the respective
> compensation the emplyee gets for working that minute (double time=2,
> 150% =1,5, 133%=1,33 or normal time=1).
>
> a is the day, 1 for sunday, 2 for monday and so on, au is a written
> cell reference.


--

Dave Peterson
Reply With Quote
  #5 (permalink)  
Old 04-27-2008, 06:40 AM
Oslopelle
 
Posts: n/a
Re: can lookup return cell reference istead of "text" for sumif?

On 27 Apr, 02:44, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> It worked for me.
>
> I don't have another suggestion--except for you to try it again.
>
> You could explain where each range is--is the table on sheet1 or the sheetwith
> the formula?
>
> And please copy|paste the formula you're using from the formula bar. *Don't type
> it into the message. *Too many things can go wrong.
>
>
>
>
>
> Oslopelle wrote:
>
> > On 26 Apr, 16:04, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> > > Try wrapping the =vlookup() with =indirect(vlookup())

>
> > > =Sumif($A$7:$A$1447;"<"&X3;indirect(vlookup(e3;AT3 :AU11;2;false)))
> > > -Sumif($A$7:$A$1447;"<"&y3;indirect(vlookup(e3;AT3: AU11;2;false)))

>
> > > (aren't you missing some ()'s in your posted formula?

>
> > > Oslopelle wrote:

>
> > > > I am trying to use a lookup-function to determine a different sum
> > > > range for several criteria.
> > > > Like so:
> > > > =Sumif($A$7:$A$1447;"<"&X3;vlookup(e3;AT3:AU11;2;f alse)-Sumif($A$7:$A
> > > > $1447;"<"&y3;vlookup(e3;AT3:AU11;2;false)
> > > > The problem is that the vlookup returns text and not the cell
> > > > reference. Is there a way to get the answer from the lookup expressed
> > > > as cell reference instead of text, since sumif can't use text, just
> > > > the cell reference?

>
> > > > I use it to calculate the number of hours the staff should be paid, so
> > > > it's different from weekdays to saturdays, holidays and sundays
> > > > in at3 to at11 i have the days (1 for sunday) of the week and in au3
> > > > to au11 i have the ranges for the reference table with pay per minute.
> > > > 1 * * * sheet1!$E$7:$E$1447
> > > > 2 * * * sheet1!$C$7:$C$1447
> > > > 3 * * * sheet1!$C$7:$C$1447
> > > > 4 * * * sheet1!$C$7:$C$1447
> > > > 5 * * * sheet1!$C$7:$C$1447
> > > > 6 * * * sheet1!$C$7:$C$1447
> > > > 7 * * * sheet1!$D$7:$D$1447
> > > > holliday * * * *sheet1!$F$7:$F$1447
> > > > eve * * sheet1!$G$7:$G$1447

>
> > > > /Oslopelle

>
> > > --

>
> > > Dave Peterson- Dölj citerad text -

>
> > > - Visa citerad text -

>
> > unfortunatley i ony get an error message when trying to make an
> > indirect function. In swedish it comes out as beräkningsbar -
> > calculable an the sumif won't accept that as a cell reference in the
> > sum range.
> > I now have:
> > Sumif(sheet1!$A$7:$A$1447;"<"&X3;vlookup(e3;sheet1 !AT3:AU11;2;false))-
> > sumif(sheet1!$A$7:$A$1447;"<"&Y3;vlookup(e3;sheet1 !AT3:AU11;2;false))

>
> > if e3= 4
> > the lookup would return the answer "sheet1!$c$7:$c$1447"

>
> > AT * * * * * *AU
> > > > 1 * * * * sheet1!$E$7:$E$1447
> > > > 2 * * * * sheet1!$C$7:$C$1447
> > > > 3 * * * * sheet1!$C$7:$C$1447
> > > > 4 * * * * sheet1!$C$7:$C$1447
> > > > 5 * * * * sheet1!$C$7:$C$1447
> > > > 6 * * * * sheet1!$C$7:$C$1447
> > > > 7 * * * * sheet1!$D$7:$D$1447
> > > > holliday *sheet1!$F$7:$F$1447
> > > > eve * * * sheet1!$G$7:$G$1447

>
> > the problem is that the sumif does not recognize that result as a cell
> > reference. it thinks it is text and the sumif returns an error.How do
> > i change this? it only needs to recognize the result as a range.

>
> > a contains a day in minutes, x is the beginning time of the empployee,
> > y is the ending time of the employee, c,d, e, f, g are the respective
> > compensation the emplyee gets for working that minute (double time=2,
> > 150% =1,5, 133%=1,33 or normal time=1).

>
> > a is the day, 1 for sunday, 2 for monday and so on, au is a written
> > cell reference.

>
> --
>
> Dave Peterson- Dölj citerad text -
>
> - Visa citerad text -


It does work, it was just me and bad syntax!!
Thanks a million for the help! It sure made my day!!
/Oslopelle
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT. The time now is 04:33 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Internet Advertising | Gas Suppliers | Web Advertising | Property for sale in Spain | Mobile Phone



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114