Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Modify Vlookup

Hi,
I need some help in modifying a vlookup formula the following code
works however I need to modify it so that when the cell in "Like
Store" (B2) is blank the code will place the cell value of Rounded of
"3886" in place of the #N/A.



VLOOKUP(B2,A$2:C655,3,FALSE) This is in the column for "Final
Weighting"


Store Like Store Weighting Weighting % Reduction Weighting - %
Rounded Final Weighting
1001 1006 39142
10 35227.8 35228 39414
1002 1001 36606
10 32945.4 32946 39142
1003 38858
90 3885.8 3886 #N/A
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Modify Vlookup

=if(b2="","what does rounded of 3886 mean?",vlookup(....))


Charles wrote:

Hi,
I need some help in modifying a vlookup formula the following code
works however I need to modify it so that when the cell in "Like
Store" (B2) is blank the code will place the cell value of Rounded of
"3886" in place of the #N/A.

VLOOKUP(B2,A$2:C655,3,FALSE) This is in the column for "Final
Weighting"

Store Like Store Weighting Weighting % Reduction Weighting - %
Rounded Final Weighting
1001 1006 39142
10 35227.8 35228 39414
1002 1001 36606
10 32945.4 32946 39142
1003 38858
90 3885.8 3886 #N/A


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Modify Vlookup

On Oct 18, 1:16*pm, Dave Peterson wrote:
=if(b2="","what does rounded of 3886 mean?",vlookup(....))



Charles wrote:

Hi,
I need some help in modifying a vlookup formula the following code
works however I need to modify it so that when the cell in "Like
Store" (B2) is blank the code will place the cell value of Rounded of
"3886" in place of the #N/A.


VLOOKUP(B2,A$2:C655,3,FALSE) This is in the column for "Final
Weighting"


Store * Like Store * * *Weighting * * * Weighting % Reduction * Weighting - %
Rounded Final Weighting
1001 * *1006 * * * * * * *39142
10 * * * * * * * * * * * * 35227.8 * * * * * *35228 * * * * 39414
1002 * *1001 * * * * * * *36606
10 * * * * * * * * * * * * 32945.4 * * * * * *32946 * * * * 39142
1003 * * * * * * * * * * * * * * *38858
90 * * * * * * * * * * * * * 3885.8 * * * * * 3886 * * * * * * * * * #N/A


--

Dave Peterson


Hi,

Thanks for the response. it looks like the format of the worksheet did
not carry over in the post.
The "3886 is the value I want to replace the N/A with.
The worksheet format starts in column A thru G.
In column G i have the Vlookup code VLOOKUP(B2,A$2:C655,3,FALSE) .
This work fine, but now I would like to for it to say if the cell
value in column B is "" to instead of putting "#N/A" In Column G it
will Put the value of column F which will be in the same row as the
blank cell in column B.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Modify Vlookup

Put this formula in G2 and copy it down...

=IF(B2="",F2,VLOOKUP(B2,A$2:C655,3,FALSE))

This is the same formula that Dave posted with your VLOOKUP function call
substituted in and F2 replacing the question he asked in the second argument
to the IF function.

--
Rick (MVP - Excel)


"Charles" wrote in message
...
On Oct 18, 1:16 pm, Dave Peterson wrote:
=if(b2="","what does rounded of 3886 mean?",vlookup(....))



Charles wrote:

Hi,
I need some help in modifying a vlookup formula the following code
works however I need to modify it so that when the cell in "Like
Store" (B2) is blank the code will place the cell value of Rounded of
"3886" in place of the #N/A.


VLOOKUP(B2,A$2:C655,3,FALSE) This is in the column for "Final
Weighting"


Store Like Store Weighting Weighting % Reduction Weighting - %
Rounded Final Weighting
1001 1006 39142
10 35227.8 35228 39414
1002 1001 36606
10 32945.4 32946 39142
1003 38858
90 3885.8 3886 #N/A


--

Dave Peterson


Hi,

Thanks for the response. it looks like the format of the worksheet did
not carry over in the post.
The "3886 is the value I want to replace the N/A with.
The worksheet format starts in column A thru G.
In column G i have the Vlookup code VLOOKUP(B2,A$2:C655,3,FALSE) .
This work fine, but now I would like to for it to say if the cell
value in column B is "" to instead of putting "#N/A" In Column G it
will Put the value of column F which will be in the same row as the
blank cell in column B.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Modify Vlookup

Actually, I kind of think the ending row of your lookup range should be
absolute like the beginning row is...

=IF(B2="",F2,VLOOKUP(B2,A$2:C$655,3,FALSE))

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
Put this formula in G2 and copy it down...

=IF(B2="",F2,VLOOKUP(B2,A$2:C655,3,FALSE))

This is the same formula that Dave posted with your VLOOKUP function call
substituted in and F2 replacing the question he asked in the second
argument to the IF function.

--
Rick (MVP - Excel)


"Charles" wrote in message
...
On Oct 18, 1:16 pm, Dave Peterson wrote:
=if(b2="","what does rounded of 3886 mean?",vlookup(....))



Charles wrote:

Hi,
I need some help in modifying a vlookup formula the following code
works however I need to modify it so that when the cell in "Like
Store" (B2) is blank the code will place the cell value of Rounded of
"3886" in place of the #N/A.


VLOOKUP(B2,A$2:C655,3,FALSE) This is in the column for "Final
Weighting"


Store Like Store Weighting Weighting % Reduction Weighting - %
Rounded Final Weighting
1001 1006 39142
10 35227.8 35228 39414
1002 1001 36606
10 32945.4 32946 39142
1003 38858
90 3885.8 3886 #N/A


--

Dave Peterson


Hi,

Thanks for the response. it looks like the format of the worksheet did
not carry over in the post.
The "3886 is the value I want to replace the N/A with.
The worksheet format starts in column A thru G.
In column G i have the Vlookup code VLOOKUP(B2,A$2:C655,3,FALSE) .
This work fine, but now I would like to for it to say if the cell
value in column B is "" to instead of putting "#N/A" In Column G it
will Put the value of column F which will be in the same row as the
blank cell in column B.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Modify Vlookup

On Oct 18, 1:57*pm, "Rick Rothstein"
wrote:
Put this formula in G2 and copy it down...

=IF(B2="",F2,VLOOKUP(B2,A$2:C655,3,FALSE))

This is the same formula that Dave posted with your VLOOKUP function call
substituted in and F2 replacing the question he asked in the second argument
to the IF function.

--
Rick (MVP - Excel)

"Charles" wrote in message

...
On Oct 18, 1:16 pm, Dave Peterson wrote:



=if(b2="","what does rounded of 3886 mean?",vlookup(....))


Charles wrote:


Hi,
I need some help in modifying a vlookup formula the following code
works however I need to modify it so that when the cell in "Like
Store" (B2) is blank the code will place the cell value of Rounded of
"3886" in place of the #N/A.


VLOOKUP(B2,A$2:C655,3,FALSE) This is in the column for "Final
Weighting"


Store Like Store Weighting Weighting % Reduction Weighting - %
Rounded Final Weighting
1001 1006 39142
10 35227.8 35228 39414
1002 1001 36606
10 32945.4 32946 39142
1003 38858
90 3885.8 3886 #N/A


--


Dave Peterson


Hi,

Thanks for the response. it looks like the format of the worksheet did
not carry over in the post.
The "3886 is the value I want to replace the N/A with.
The worksheet format starts in column A thru G.
In column G i have the Vlookup code *VLOOKUP(B2,A$2:C655,3,FALSE) .
This work fine, but now I would like to for it to say if the cell
value in column B is "" to instead of putting *"#N/A" In Column G it
will Put the value of column F which will be in the same row as the
blank cell in column B.


Rick,

Thanks for the code it works.
Also thanks to all who responded to my request.
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
Modify a vLookup? Max Pressure Excel Worksheet Functions 6 April 7th 08 02:02 PM
Modify a UDF please? Excel Helps Excel Worksheet Functions 0 January 23rd 08 12:10 AM
Vlookup - modify dropdown lists Hirsch Excel Worksheet Functions 3 November 26th 07 06:51 PM
modify vlookup cuffie New Users to Excel 5 October 30th 07 05:52 PM
Modify this a bit Jay Excel Programming 5 April 22nd 05 06:43 PM


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