Forum Discussion

Jonas44405's avatar
Jonas44405
Copper Contributor
Dec 02, 2021

Adding a text behind the amount in a IF calculation

Hello, I would like some help to add GB (gigabyte) after some of the calculations I have done in a =IF function. For example, in column D5 I have a list with data usage in GB. Looks like 1 GB, 2 GB, 3 GB, 5 GB, 15 GB, 25 GB, 50 GB, 100 GB and Unlimited. What I would like to do is to have a formel saying, for example, =IF(D5=AF3;T3;0). Where D5 is where I want to get the info, AF3 is the list from where D5 has the info and T3 is where I want to compare against. D5 is 1 Gb, AF3 is 1 GB and T3 is 10 GB. The calculation works but I can't get the GB in the calculation. 

 

Also, I want the calculation to return back "Unlimited" if the GB is more than 60 GB.

 

Thankful for help

7 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    Jonas44405 Not really sure what you are trying to do, but the formula in the screenshot seems overly complicated. Can you upload the file and mention which Excel version you are using? That would help. 

Resources