Adding a text behind the amount in a IF calculation

%3CLINGO-SUB%20id%3D%22lingo-sub-3026513%22%20slang%3D%22en-US%22%3EAdding%20a%20text%20behind%20the%20amount%20in%20a%20IF%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3026513%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20would%20like%20some%20help%20to%20add%20GB%20(gigabyte)%20after%20some%20of%20the%20calculations%20I%20have%20done%20in%20a%20%3DIF%20function.%20For%20example%2C%20in%20column%20D5%20I%20have%20a%20list%20with%20data%20usage%20in%20GB.%20Looks%20like%201%20GB%2C%202%20GB%2C%203%20GB%2C%205%20GB%2C%2015%20GB%2C%2025%20GB%2C%2050%20GB%2C%20100%20GB%20and%20Unlimited.%20What%20I%20would%20like%20to%20do%20is%20to%20have%20a%20formel%20saying%2C%20for%20example%2C%26nbsp%3B%3DIF(D5%3DAF3%3BT3%3B0).%20Where%20D5%20is%20where%20I%20want%20to%20get%20the%20info%2C%20AF3%20is%20the%20list%20from%20where%20D5%20has%20the%20info%20and%20T3%20is%20where%20I%20want%20to%20compare%20against.%20D5%20is%201%20Gb%2C%20AF3%20is%201%20GB%20and%20T3%20is%2010%20GB.%20The%20calculation%20works%20but%20I%20can't%20get%20the%20GB%20in%20the%20calculation.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20I%20want%20the%20calculation%20to%20return%20back%20%22Unlimited%22%20if%20the%20GB%20is%20more%20than%2060%20GB.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThankful%20for%20help%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3026513%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3026836%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20a%20text%20behind%20the%20amount%20in%20a%20IF%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3026836%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1236216%22%20target%3D%22_blank%22%3E%40Jonas44405%3C%2FA%3E%26nbsp%3BNot%20really%20sure%20what%20you%20are%20trying%20to%20do%2C%20but%20the%20formula%20in%20the%20screenshot%20seems%20overly%20complicated.%20Can%20you%20upload%20the%20file%20and%20mention%20which%20Excel%20version%20you%20are%20using%3F%20That%20would%20help.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3026889%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20a%20text%20behind%20the%20amount%20in%20a%20IF%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3026889%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3BTy%20for%20your%20help.%20I%20have%20added%20the%20sheet.%20I%20am%20using%20Office365%20so%20I%20guess%20the%20latest%20version%20of%20excel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3027024%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20a%20text%20behind%20the%20amount%20in%20a%20IF%20calculation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3027024%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1236216%22%20target%3D%22_blank%22%3E%40Jonas44405%3C%2FA%3E%26nbsp%3BThanks%2C%20but%20can%20you%20now%20please%20explain%20what%20need%20to%20be%20displayed%20and%20where%3F%20The%20formula%20in%20Q16%20seems%20to%20be%20just%20sitting%20there%20as%20an%20example.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

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

@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. 

@Riny_van_Eekelen Ty for your help. I have added the sheet. I am using Office365 so I guess the latest version of excel

@Jonas44405 Thanks, but can you now please explain what need to be displayed and where? The formula in Q16 seems to be just sitting there as an example.

Yes, it's an example so that I can try it before I add it. Q16 formula should be added to F5. What I want is to when change GB in D5, F5 should automatically reflect this. In the example, everything below 10GB and 10GB should be reflected as 10GB in F5. I also would like F5 to have GB after and not only 10 as I have in my example. Add text and numbers. For GB above 50GB I would like F5 to reflect Unlimited (text). Ty

@Jonas44405 Added some extra information in column AG and used XLOOKUP in F5. Is that what you want?

Yes exactly thank you. And this could also be used in H5, J5, etc?
I wanted to ask you if I could add an additional question to this thread? Regarding that, I want to summarize D29 with the value that is in AG4:AG8. D29 is the yearly cost and AG examples are 2,3 years, etc. Ty again