Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Formulas with if functions????

Hi

I have a data base that looks like:

"Tonnage U Of M "Cargo
Tonnage
NT"
15,514.00 GROSS
15,893.00 GROSS
13,242.91 METRIC
15,609.00 GROSS
16,035.00 NET_TONS
15,587.00 GROSS
10,431.00 METRIC
500 NET_TONS
14,039.00 METRIC


In the Cargo Tonnage Column, I want it to be in net tonnes.

So if it says GROSS in the 2nd column, it needs to take the first column and
muliply it by 1.12, if it say METRIC, it needs to multiply by 1.1024 and
NET_TONS, stays the same.

How is this done?

-
:)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Formulas with if functions????

=A2*(INDEX({1.12,1.024,1},MATCH(B2,{"GROSS","METRI C","NET_TONS"},0)))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Ruth" wrote in message
...
Hi

I have a data base that looks like:

"Tonnage U Of M "Cargo
Tonnage
NT"
15,514.00 GROSS
15,893.00 GROSS
13,242.91 METRIC
15,609.00 GROSS
16,035.00 NET_TONS
15,587.00 GROSS
10,431.00 METRIC
500 NET_TONS
14,039.00 METRIC


In the Cargo Tonnage Column, I want it to be in net tonnes.

So if it says GROSS in the 2nd column, it needs to take the first column
and
muliply it by 1.12, if it say METRIC, it needs to multiply by 1.1024 and
NET_TONS, stays the same.

How is this done?

-
:)



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Formulas with if functions????

Possibly one way:

=IF(B2="GROSS",A2*1.12,IF(B2="METRIC",A1*1.1024,A2 ))

HTH,
Paul


"Ruth" wrote in message
...
Hi

I have a data base that looks like:

"Tonnage U Of M "Cargo
Tonnage
NT"
15,514.00 GROSS
15,893.00 GROSS
13,242.91 METRIC
15,609.00 GROSS
16,035.00 NET_TONS
15,587.00 GROSS
10,431.00 METRIC
500 NET_TONS
14,039.00 METRIC


In the Cargo Tonnage Column, I want it to be in net tonnes.

So if it says GROSS in the 2nd column, it needs to take the first column
and
muliply it by 1.12, if it say METRIC, it needs to multiply by 1.1024 and
NET_TONS, stays the same.

How is this done?

-
:)



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Formulas with if functions????

I tried both ways, and they both worked -- thank-you!
--
:)


"PCLIVE" wrote:

Possibly one way:

=IF(B2="GROSS",A2*1.12,IF(B2="METRIC",A1*1.1024,A2 ))

HTH,
Paul


"Ruth" wrote in message
...
Hi

I have a data base that looks like:

"Tonnage U Of M "Cargo
Tonnage
NT"
15,514.00 GROSS
15,893.00 GROSS
13,242.91 METRIC
15,609.00 GROSS
16,035.00 NET_TONS
15,587.00 GROSS
10,431.00 METRIC
500 NET_TONS
14,039.00 METRIC


In the Cargo Tonnage Column, I want it to be in net tonnes.

So if it says GROSS in the 2nd column, it needs to take the first column
and
muliply it by 1.12, if it say METRIC, it needs to multiply by 1.1024 and
NET_TONS, stays the same.

How is this done?

-
:)




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
functions/formulas Lara Leigh Excel Worksheet Functions 2 April 18th 06 04:17 AM
Using formulas/functions Lucylambkin Excel Worksheet Functions 5 November 11th 05 04:45 PM
What Formulas or Functions to use??!!! aeiou Excel Discussion (Misc queries) 2 July 27th 05 04:27 AM
functions/formulas AccountantPB Excel Worksheet Functions 2 May 13th 05 03:05 AM
Functions and formulas abfabrob Excel Discussion (Misc queries) 4 April 13th 05 08:04 PM


All times are GMT +1. The time now is 06:59 PM.

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"