Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Ignore calculation if text

We have a VLOOKUP fetching prices for various options.
On one option the user has to ask for a specific price.
This means that in our price list we have the text "ASK" against one option.

When the VLOOKUP retrieves a price, we multiply by the exchange rate.
Excel doesn't want to calculate ASK x 0.7.

How can we calculate unless the cell contains ASK in which case it just
returns "ASK"?

=IF(D4<"",VLOOKUP(D4,data!A4:B33,2,FALSE))*I4

I4 is exchange rate

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 364
Default Ignore calculation if text

Try something like
=IF(VLOOKUP(D4,data!A4:B33,2,FALSE)="ASK","ASK",IF (D4<"",VLOOKUP(D4,data!A4:B33,2,FALSE))*I4)

"AndyB" wrote in message
...
We have a VLOOKUP fetching prices for various options.
On one option the user has to ask for a specific price.
This means that in our price list we have the text "ASK" against one
option.

When the VLOOKUP retrieves a price, we multiply by the exchange rate.
Excel doesn't want to calculate ASK x 0.7.

How can we calculate unless the cell contains ASK in which case it just
returns "ASK"?

=IF(D4<"",VLOOKUP(D4,data!A4:B33,2,FALSE))*I4

I4 is exchange rate



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Ignore calculation if text

It becomes a bit messy, but you could do this:

=IF(D4="","",IF(VLOOKUP(D4,data!
A4:B33,2,0)="ASK","ASK",VLOOKUP(D4,data!A4:B33,2,0 )*I4))

Hope this helps.

Pete

On Nov 29, 11:25 am, AndyB wrote:
We have a VLOOKUP fetching prices for various options.
On one option the user has to ask for a specific price.
This means that in our price list we have the text "ASK" against one option.

When the VLOOKUP retrieves a price, we multiply by the exchange rate.
Excel doesn't want to calculate ASK x 0.7.

How can we calculate unless the cell contains ASK in which case it just
returns "ASK"?

=IF(D4<"",VLOOKUP(D4,data!A4:B33,2,FALSE))*I4

I4 is exchange rate


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Ignore calculation if text

Thanks,

No offense, but we did it Stephen's was as he posted 1st.
Regards,
Andy

"Pete_UK" wrote:

It becomes a bit messy, but you could do this:

=IF(D4="","",IF(VLOOKUP(D4,data!
A4:B33,2,0)="ASK","ASK",VLOOKUP(D4,data!A4:B33,2,0 )*I4))

Hope this helps.

Pete

On Nov 29, 11:25 am, AndyB wrote:
We have a VLOOKUP fetching prices for various options.
On one option the user has to ask for a specific price.
This means that in our price list we have the text "ASK" against one option.

When the VLOOKUP retrieves a price, we multiply by the exchange rate.
Excel doesn't want to calculate ASK x 0.7.

How can we calculate unless the cell contains ASK in which case it just
returns "ASK"?

=IF(D4<"",VLOOKUP(D4,data!A4:B33,2,FALSE))*I4

I4 is exchange rate



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Ignore calculation if text

That's okay, but you might like to check out what happens if D4 is
blank.

Pete

On Nov 29, 12:16 pm, AndyB wrote:
Thanks,

No offense, but we did it Stephen's was as he posted 1st.
Regards,
Andy



"Pete_UK" wrote:
It becomes a bit messy, but you could do this:


=IF(D4="","",IF(VLOOKUP(D4,data!
A4:B33,2,0)="ASK","ASK",VLOOKUP(D4,data!A4:B33,2,0 )*I4))


Hope this helps.


Pete


On Nov 29, 11:25 am, AndyB wrote:
We have a VLOOKUP fetching prices for various options.
On one option the user has to ask for a specific price.
This means that in our price list we have the text "ASK" against one option.


When the VLOOKUP retrieves a price, we multiply by the exchange rate.
Excel doesn't want to calculate ASK x 0.7.


How can we calculate unless the cell contains ASK in which case it just
returns "ASK"?


=IF(D4<"",VLOOKUP(D4,data!A4:B33,2,FALSE))*I4


I4 is exchange rate- Hide quoted text -


- Show quoted text -


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
Median calculation and ignore zeros coastal Excel Discussion (Misc queries) 5 February 12th 07 11:27 PM
calculation to ignore a 0 (zero) value seedy3 Excel Worksheet Functions 3 April 24th 06 02:35 PM
use "button" to make calculation ignore a cell Excel Worksheet Functions 5 March 21st 06 04:54 PM
Ignore errors when calculation average of multiple ranges joshkraemer Excel Worksheet Functions 4 February 13th 06 10:25 PM
Can a calculation ignore text if it occurs in formula's cell range Sally Excel Worksheet Functions 2 November 18th 05 04:48 PM


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