Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Seo Services company Manchester

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 09-01-2005, 03:47 PM
sonar sonar is offline
Registered User
 
Join Date: 17 Apr 2004
Posts: 39
sonar is becoming part of the community
Smile Need similar formulas to do the job

Please Register to Remove these Ads

Hi

I am currently using the following formula
=SUMIF(Mo!$A$1:$A$999,$A10,Mo!$D$1:$D$999)

the problem is, I dont want to use the SUMIF, I want to use the VLOOKUP, but the VLOOKUP does not want to work so nicely. My other formulas are easily "rattled" should I try and touch the formatting of the sheets cells.

Is there any other functions I can use that will give me what I want?

Regards
Sonar
Reply With Quote
  #2  
Old 09-01-2005, 04:08 PM
Morrigan Morrigan is offline
Valued Forum Contributor
 
Join Date: 12 Mar 2004
Posts: 323
Morrigan is becoming part of the community
SUMIF() and VLOOKUP() are completely different. SUMIF() adds up all the numbers that meet the criteria and VLOOKUP() searches a target value and returns its corresponding value.

I understand all your data must be unique. Thus VLOOKUP() can actually perform the job. Now in order for VLOOKUP() to work properly, your data must be sorted.

What do you mean by "VLOOKUP does not want to work so nicely"?



Quote:
Originally Posted by sonar
Hi

I am currently using the following formula
=SUMIF(Mo!$A$1:$A$999,$A10,Mo!$D$1:$D$999)

the problem is, I dont want to use the SUMIF, I want to use the VLOOKUP, but the VLOOKUP does not want to work so nicely. My other formulas are easily "rattled" should I try and touch the formatting of the sheets cells.

Is there any other functions I can use that will give me what I want?

Regards
Sonar
Reply With Quote
  #3  
Old 09-01-2005, 04:17 PM
sonar sonar is offline
Registered User
 
Join Date: 17 Apr 2004
Posts: 39
sonar is becoming part of the community
my 13 digit numbers only works in cells formated as Text, unfortunatly, if I try to have them any other way, the other formula that puts in the description, does not work.

Vlookup does not want to match up text formulated info with General formulated info.

I know that Sumif calc. information, but it works where vlookup does not. The problem is, I dont want it to calculate.

Any idea what I can use here?

Regards
Reply With Quote
  #4  
Old 09-01-2005, 04:20 PM
Morrigan Morrigan is offline
Valued Forum Contributor
 
Join Date: 12 Mar 2004
Posts: 323
Morrigan is becoming part of the community
Is this the same issue with your other post "Formulas not showing results"?
Reply With Quote
  #5  
Old 09-01-2005, 05:05 PM
Duke Carey
Guest
 
Posts: n/a
RE: Need similar formulas to do the job

VLOOKUP is not a subsitute for using SUMIF. Myabe what you mean is you want
to lookup A10 in that range. If so, try

=VLOOKUP($a10,Mo!$A$1:$D$999,4,false)


"sonar" wrote:

>
> Hi
>
> I am currently using the following formula
> =SUMIF(Mo!$A$1:$A$999,$A10,Mo!$D$1:$D$999)
>
> the problem is, I dont want to use the SUMIF, I want to use the
> VLOOKUP, but the VLOOKUP does not want to work so nicely. My other
> formulas are easily "rattled" should I try and touch the formatting of
> the sheets cells.
>
> Is there any other functions I can use that will give me what I want?
>
> Regards
> Sonar
>
>
> --
> sonar
> ------------------------------------------------------------------------
> sonar's Profile: http://www.excelforum.com/member.php...fo&userid=8424
> View this thread: http://www.excelforum.com/showthread...hreadid=401265
>
>

Reply With Quote
  #6  
Old 09-01-2005, 05:05 PM
Bob Phillips
Guest
 
Posts: n/a
Re: Need similar formulas to do the job

What makes you think that you want VLOOKUP, it is nothing like SUMIF.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sonar" <sonar.1up4ug_1125605155.6674@excelforum-nospam.com> wrote in
message news:sonar.1up4ug_1125605155.6674@excelforum-nospam.com...
>
> Hi
>
> I am currently using the following formula
> =SUMIF(Mo!$A$1:$A$999,$A10,Mo!$D$1:$D$999)
>
> the problem is, I dont want to use the SUMIF, I want to use the
> VLOOKUP, but the VLOOKUP does not want to work so nicely. My other
> formulas are easily "rattled" should I try and touch the formatting of
> the sheets cells.
>
> Is there any other functions I can use that will give me what I want?
>
> Regards
> Sonar
>
>
> --
> sonar
> ------------------------------------------------------------------------
> sonar's Profile:

http://www.excelforum.com/member.php...fo&userid=8424
> View this thread: http://www.excelforum.com/showthread...hreadid=401265
>



Reply With Quote
  #7  
Old 09-01-2005, 08:05 PM
bpeltzer
Guest
 
Posts: n/a
Re: Need similar formulas to do the job

You can use 'trim' or 'value' to force the key value to the needed type to
work inside the vlookup. Ex: =vlookup(value(a10),Mo!$a:$d,4,false) if the
values in column A on the Mo worksheet are numeric but cell a10 contains
text. =vlookup(trim(a10),Mo!$a:$d,4,false) should work in the opposite case.

As others noted, this all requires that your values in column A on the Mo
worksheet are unique. Otherwise vlookup would NOT be a suitable replacement
for sumif.


"sonar" wrote:

>
> my 13 digit numbers only works in cells formated as Text, unfortunatly,
> if I try to have them any other way, the other formula that puts in the
> description, does not work.
>
> Vlookup does not want to match up text formulated info with General
> formulated info.
>
> I know that Sumif calc. information, but it works where vlookup does
> not. The problem is, I dont want it to calculate.
>
> Any idea what I can use here?
>
> Regards
>
>
> --
> sonar
> ------------------------------------------------------------------------
> sonar's Profile: http://www.excelforum.com/member.php...fo&userid=8424
> View this thread: http://www.excelforum.com/showthread...hreadid=401265
>
>

Reply With Quote
  #8  
Old 09-02-2005, 12:15 AM
sonar sonar is offline
Registered User
 
Join Date: 17 Apr 2004
Posts: 39
sonar is becoming part of the community
Hi Morrigan

I guess you can say that. I tried the Text to Column story, It worked, but it messed up all my formulas I used for the 13 digit barcodes. So I decided to move the information from my stock to the main sheet, and try something alternative.

Regards
Reply With Quote
  #9  
Old 09-02-2005, 12:15 AM
sonar sonar is offline
Registered User
 
Join Date: 17 Apr 2004
Posts: 39
sonar is becoming part of the community
Hi bpeltzer

Thanks for the help, will try that.

Sonar
Reply With Quote
  #10  
Old 09-02-2005, 11:09 AM
sonar sonar is offline
Registered User
 
Join Date: 17 Apr 2004
Posts: 39
sonar is becoming part of the community
Hi, cant figure it out

What is wrong with this formula?


=IF(ISERROR(VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE),"",(VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE))


Regards
Reply With Quote
  #11  
Old 09-02-2005, 11:17 AM
Morrigan Morrigan is offline
Valued Forum Contributor
 
Join Date: 12 Mar 2004
Posts: 323
Morrigan is becoming part of the community
It will help us help you if you can be more specific. "I tried the Text to Column story. It worked, but it messed up all my formulas I used for the 13 digit barcodes." is not very informative.

If after the changes it worked on one sheet but messed up others, maybe you can try convert all your barcodes on all sheets using the same approach. If it does not solve the issue, "it messed up all my formulas" does not tell us enough.



Quote:
Originally Posted by sonar
Hi Morrigan

I guess you can say that. I tried the Text to Column story, It worked, but it messed up all my formulas I used for the 13 digit barcodes. So I decided to move the information from my stock to the main sheet, and try something alternative.

Regards
Reply With Quote
  #12  
Old 09-02-2005, 11:20 AM
Morrigan Morrigan is offline
Valued Forum Contributor
 
Join Date: 12 Mar 2004
Posts: 323
Morrigan is becoming part of the community
Formula looks fine to me, but why do you need to use VALUE()?

Depending on what's in A10, you may or may not get a result. For instance if A10 contains text, you will get #VALUE!.



Quote:
Originally Posted by sonar
Hi, cant figure it out

What is wrong with this formula?


=IF(ISERROR(VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE),"",(VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE))


Regards
Reply With Quote
  #13  
Old 09-02-2005, 11:48 AM
sonar sonar is offline
Registered User
 
Join Date: 17 Apr 2004
Posts: 39
sonar is becoming part of the community
Hi

I used the formula

=VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE)

because it seems to work and it does the job, I am not even going to ask why it works, or try to explain how it works, its beyond me, I know when I am defeated.

but I have formulated it to

=IF(ISERROR(IF($AH10=(VLOOKUP(VALUE($A10),We!$A:$D,4,FALSE)),"",(VLOOKUP(VALUE($A10),We!$A:$D,4,FALS E)))),"",(IF($AH10=(VLOOKUP(VALUE($A10),We!$A:$D,4,FALSE)),"",(VLOOKUP(VALUE($A10),We!$A:$D,4,FALSE) ))))

and that works

but now I want to formulate

=VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE)

in column AH10

not to give me an #N/A error, by

doing the following:

=IF(ISERROR(VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE),"",VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE))

but everytime I do it, it complains about the ,"",.

Any idea what stupid mistake I could have made here? I mean, there must be something wrong with the formula for excel to complain about it.
Reply With Quote
  #14  
Old 09-02-2005, 12:02 PM
Morrigan Morrigan is offline
Valued Forum Contributor
 
Join Date: 12 Mar 2004
Posts: 323
Morrigan is becoming part of the community
You are missing a ")" for your ISERROR()


Quote:
Originally Posted by sonar
Hi

I used the formula

=VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE)

because it seems to work and it does the job, I am not even going to ask why it works, or try to explain how it works, its beyond me, I know when I am defeated.

but I have formulated it to

=IF(ISERROR(IF($AH10=(VLOOKUP(VALUE($A10),We!$A:$D,4,FALSE)),"",(VLOOKUP(VALUE($A10),We!$A:$D,4,FALS E)))),"",(IF($AH10=(VLOOKUP(VALUE($A10),We!$A:$D,4,FALSE)),"",(VLOOKUP(VALUE($A10),We!$A:$D,4,FALSE) ))))

and that works

but now I want to formulate

=VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE)

in column AH10

not to give me an #N/A error, by

doing the following:

=IF(ISERROR(VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE),"",VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE))

but everytime I do it, it complains about the ,"",.

Any idea what stupid mistake I could have made here? I mean, there must be something wrong with the formula for excel to complain about it.
Reply With Quote
  #15  
Old 09-02-2005, 01:11 PM
sonar sonar is offline
Registered User
 
Join Date: 17 Apr 2004
Posts: 39
sonar is becoming part of the community
Thanks

Found it.

=IF(ISERROR(VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE)),"",VLOOKUP(VALUE($A$10),Mo!$A:$D,4,FALSE))
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Forum Jump